Alphabeta Math
DefinitionDefinition: Literature-sourcedProof: Not applicableSession-authored (Fable 5 assisted)judge pass (z-ai/glm-5.2)verified 2026-07-29 (claude-fable-5)
How statement and proof provenance work

The first chip identifies the source of the statement or construction; the second identifies the source of its local proof or verification.

  • Literature-sourced — the exact statement appears in a cited source; only wording and notation differ.
  • AI-adapted — a semantically identical restatement of literature-sourced material, modulo indexing, notation, and boundary cases adopted by the library.
  • AI-generated — a genuinely novel statement formulated by AI, with no source for the claim itself.

These labels describe origin, not correctness: citations and verification chips remain separate evidence.

The derangement number DnD_n: the number of bijections of an nn-element set with no fixed point

Definition

Let AA be a finite set. A derangement of AA is a bijection f:AAf : A \to A with f(a)af(a) \ne a for every aAa \in A (Injection, surjection, bijection). Write

Der(A):={fBij(A) : f(a)a for every aA},\operatorname{Der}(A) := \{\, f \in \operatorname{Bij}(A) \ :\ f(a) \ne a \text{ for every } a \in A \,\},

where Bij(A)\operatorname{Bij}(A) is the set of bijections of AA onto itself.

Der(A)\operatorname{Der}(A) is finite. Bij(A)\operatorname{Bij}(A) is finite with Bij(A)=A!\lvert\operatorname{Bij}(A)\rvert = \lvert A\rvert! (A finite set AA with A=n\lvert A\rvert = n has exactly n!n! bijections onto itself, and n!n! bijections onto any set of the same cardinality, The factorial n!n! and the falling factorial nkn^{\underline{k}}, defined by recursion in N\mathbb{N}), and Der(A)\operatorname{Der}(A) is a subset of it, hence finite (A subset of a finite set is finite, with BA\lvert B\rvert \le \lvert A\rvert, and equality holds if and only if B=AB = A, clause 1). So Der(A)\lvert\operatorname{Der}(A)\rvert is a natural number (The cardinality A\lvert A\rvert of a finite set).

The count depends only on A\lvert A\rvert. Let h:AAh : A \to A' be a bijection of finite sets. The map fhfh1f \mapsto h \circ f \circ h^{-1} sends Bij(A)\operatorname{Bij}(A) into Bij(A)\operatorname{Bij}(A'), since composites and inverses of bijections are bijections, and it sends Der(A)\operatorname{Der}(A) into Der(A)\operatorname{Der}(A'): if h(f(h1(a)))=ah(f(h^{-1}(a'))) = a' for some aAa' \in A' then, applying h1h^{-1} and writing a:=h1(a)a := h^{-1}(a'), we get f(a)=af(a) = a. The map gh1ghg \mapsto h^{-1} \circ g \circ h is a two-sided inverse, so Der(A)Der(A)\operatorname{Der}(A) \approx \operatorname{Der}(A') and the two sets have the same cardinality by the transport clause (c) of The cardinality A\lvert A\rvert of a finite set.

Definition. For nNn \in \mathbb{N} (The natural numbers N\mathbb{N} (von Neumann)) set

Dn  :=  Der(n)N,D_n \;:=\; \big\lvert \operatorname{Der}(n) \big\rvert \in \mathbb{N},

the derangement number. Since n=n\lvert n\rvert = n, the previous paragraph gives Der(A)=DA\lvert\operatorname{Der}(A)\rvert = D_{\lvert A\rvert} for every finite set AA.

Three values, read off the definition and not stipulated.

  • D0=1D_0 = 1. Here 0=0 = \varnothing, the only function \varnothing \to \varnothing is the empty function, it is a bijection, and the condition "f(a)af(a) \ne a for every aa \in \varnothing" holds vacuously. So Der()={}\operatorname{Der}(\varnothing) = \{\varnothing\}.
  • D1=0D_1 = 0. Here 1={0}1 = \{0\} and the only bijection of {0}\{0\} is the identity, which fixes 00.
  • D2=1D_2 = 1. Here 2={0,1}2 = \{0,1\}, the two bijections are the identity and the exchange of 00 and 11, and only the second is fixed-point free.

Remarks

  • A set of bijections, with no group vocabulary. The object counted is a set of functions. Nothing among this page's declared prerequisites defines a symmetric group, a permutation cycle or a conjugacy class, and no result about DnD_n stated here needs one.

  • D0=1D_0 = 1 is not a convention. It is what the definition returns at n=0n = 0, and it is the value that makes the closed formula and the first recurrence true at their first legal index. A text that sets D0=1D_0 = 1 "by convention" is stipulating what is here computed.

Depends on

Used by

Dependency tree · next 3 levels

Direct dependencies and their dependencies through the next three levels: 67 results over 27 levels. An arrow runs from a result to what uses it, and this result sits at the bottom with a heavier outline. Click the chart to enlarge it.

Sources