Derangements and Generalizations: A Counting Note on the Matching Problem
Abstract
We give a concise historical background to Montmort's matching problem and its modern variants such as the hat-check problem, then develop a unified counting framework for fixed-point-free allocations. Using elementary recurrence and inclusion-exclusion arguments, we derive closed forms for derangements, rectangular injections, and partial l-matchings, and we combine them into a single formula. We also provide exact counts for the number of fixed points and Poisson limit laws. This note thus offers a compact, self-contained synthesis linking classical results with their two principal generalizations in a single scheme.
Turn this paper into a full lesson
ArcXiv compiles a staged curriculum from this paper: 8-12 lessons across beginner → advanced, synthesised section guides, visuals, flashcards, a quiz, exercises, and on-demand deep dives per section. Grounded in the abstract, never invented.