Skip to content
  • Overview
  • Curriculum
    • FLUMental maths and numerical fluency
    • COMBCounting and combinatorics
    • PROBProbability
    • GAMEGames, decision theory and puzzles
    • MMMarket making
    • MKTMarkets and products

Practise

  • Question bank
  • Mental arithmetic
  • Market simulator
  • Arbitrage trees
  • Horse racing
  • Bid book
  • Screening tests
  • Mock papers

Reference

  • Formula reference
  • Search

Your record

  • Review queue
  • Progress
  • Leaderboard
  • Profile
  • Invite friends
AccountSend feedback
  1. Formulas

Counting and combinatorics

Derangements

Counts the permutations that fix nothing — the hat-check problem and its many disguises.

Dn=n!∑k=0n(−1)kk! ⟶ n!eD_n = n!\sum_{k=0}^{n}\frac{(-1)^k}{k!} \ \longrightarrow\ \frac{n!}{e}Dn​=n!k=0∑n​k!(−1)k​ ⟶ en!​

Where

Dn/n!→1/eD_n/n! \to 1/eDn​/n!→1/e
About 36.8%36.8\%36.8%, and essentially exact from n=5n = 5n=5.

Assumptions

  • Derived by inclusion–exclusion over which items are fixed.

Sanity check. D5=44D_5 = 44D5​=44 out of 120120120, which is 36.7%36.7\%36.7% — already within 0.0020.0020.002 of the limit.

Where this is taught

  • Inclusion–exclusion, derangements and the pigeonhole · COMB · Inclusion–exclusion and invariants

QuantMax · 141 lessons · 1342 questions · c5c0caa

  • Premium
  • Arbitrage trees
  • Horse racing
  • Invite friends
  • Account
  • About QuantMax
  • Terms
  • Privacy

Firm names identify publicly reported question patterns and nothing more. QuantMax is not affiliated with, endorsed by, or recruiting for any firm named in the curriculum. Everything you do in lessons and the question bank is kept to your account.