TheoremBase

Sketch: apply inclusion and exclusion to the maps missing a given value, and to the permutations fixing a given point, then group the subsets by size.

Proof

Throughout, Surj⁑([n],[k])\operatorname{Surj}([n],[k]) and DnD_{n} are finite, as subsets of the finite sets [k][n][k]^{[n]} and SnS_{n} (Finite Sets: the Pigeonhole Principle, Uniqueness of the Length, Subsets, Unions, Products, Images, Bounded Sets of Natural Numbers, Extreme Elements, Sets of Maps, Finite Unions and Finite Choice (ix), Finite Sets: Removing an Element, Injective Self-Maps, Infinite Sets, Sets of Permutations, Pairs and Extended Tuples (iv), Finite Sets: the Pigeonhole Principle, Uniqueness of the Length, Subsets, Unions, Products, Images, Bounded Sets of Natural Numbers, Extreme Elements, Sets of Maps, Finite Unions and Finite Choice (iv)); the elements of SnS_{n} are exactly the bijections [n]β†’[n][n]\to[n] (Permutations of a Set and the Set of Permutations of [n] (iii)); and for p∈N0p\in\mathbb{N}_{0} and SβŠ†[p]S\subseteq[p] we have #([p]βˆ–S)=pβˆ’#S\#([p]\setminus S)=p-\#S, because #S≀p\#S\le p and #S+#([p]βˆ–S)=#[p]=p\#S+\#([p]\setminus S)=\#[p]=p (Counting: Intervals, Empty Sets and Singletons, Injective Images, Subsets, Unions and Products (iv), Counting: Intervals, Empty Sets and Singletons, Injective Images, Subsets, Unions and Products (v), Counting: Intervals, Empty Sets and Singletons, Injective Images, Subsets, Unions and Products (i), The Difference of Two Natural Numbers with Zero (i)); the intervals {m,…,n}\{m,\dots,n\} of N0\mathbb{N}_{0} are finite sets (Finite Sets: the Pigeonhole Principle, Uniqueness of the Length, Subsets, Unions, Products, Images, Bounded Sets of Natural Numbers, Extreme Elements, Sets of Maps, Finite Unions and Finite Choice (vii)); and elements of N0\mathbb{N}_{0}, which is closed under products, are read in the field R\mathbb{R}, where they and powers such as (βˆ’1)j(-1)^{j} lie, and where their differences, products and powers keep their values (Multiplication on Omega (i), The Structure of ℝ as a Field and an Ordered Ring (i), Maps Given by Iterated Operations: Partial Iterates, Images of Natural Numbers, Powers and Operations over a Finite Set (ii), Maps Given by Iterated Operations: Partial Iterates, Images of Natural Numbers, Powers and Operations over a Finite Set (iv), The Image of the Natural Numbers with Zero in a Commutative Ring Respects Zero, One, Sums, Products, Differences, Powers, and Finite Sums and Products (iv), The Image of the Natural Numbers with Zero in a Commutative Ring Respects Zero, One, Sums, Products, Differences, Powers, and Finite Sums and Products (iii), The Image of the Natural Numbers with Zero in a Commutative Ring Respects Zero, One, Sums, Products, Differences, Powers, and Finite Sums and Products (v)). All formulas follow from The Principle of Inclusion and Exclusion (i), after grouping the subsets by size (the maps S↦#SS\mapsto\#S and S↦#ASS\mapsto\#A_{S} on the subsets SS of the index set are those of The Maps i ↦ #C(i) and S ↦ #S (i) and The Maps i ↦ #C(i) and S ↦ #S (ii)).

Step 1 (surjections avoid no value). Let k∈N0k\in\mathbb{N}_{0}, X=[k][n]X=[k]^{[n]}, and for i∈[k]i\in[k] let Ai={Ο†βˆˆX:iβˆ‰Ο†([n])}A_{i}=\{\varphi\in X:i\notin\varphi([n])\}. A map Ο†βˆˆX\varphi\in X lies in none of the AiA_{i} exactly when every i∈[k]i\in[k] is a value of Ο†\varphi, so

Xβˆ–β‹ƒi=1kAi=Surj⁑([n],[k])X\setminus\bigcup_{i=1}^{k}A_{i}=\operatorname{Surj}([n],[k])

by The Sets of Injections, Surjections and Bijections between Two Sets (ii).

Step 2 (the sets ASA_{S}). Let SβŠ†[k]S\subseteq[k]. For nonempty SS, Ο†βˆˆAS\varphi\in A_{S} means that no element of SS is a value of Ο†\varphi; for S=βˆ…S=\emptyset, Aβˆ…=XA_{\emptyset}=X. In both cases

AS={Ο†βˆˆX:Ο†(a)∈[k]βˆ–SΒ forΒ everyΒ a∈[n]}.A_{S}=\{\varphi\in X:\varphi(a)\in[k]\setminus S\text{ for every }a\in[n]\}.

A map [n]β†’[k][n]\to[k] with all its values in [k]βˆ–S[k]\setminus S is a map [n]β†’[k]βˆ–S[n]\to[k]\setminus S, and conversely (Gluing Maps on Disjoint Domains, and Shrinking the Codomain (iii)); so AS=([k]βˆ–S)[n]A_{S}=([k]\setminus S)^{[n]}, and by Counting Maps, Injections, Bijections and Permutations (i)

#AS=(kβˆ’#S)n.\#A_{S}=(k-\#S)^{n}.

Step 3 ((i)). By Steps 1 and 2 and The Principle of Inclusion and Exclusion (i) with m=km=k, and then Counting Subsets (iii) with A=[k]A=[k] and g:N0β†’Rg:\mathbb{N}_{0}\to\mathbb{R}, g(j)=(βˆ’1)j(kβˆ’j)ng(j)=(-1)^{j}(k-j)^{n} with kβˆ’jk-j and its power formed in R\mathbb{R},

#Surj⁑([n],[k])=βˆ‘S∈P([k])(βˆ’1)#S(kβˆ’#S)n=βˆ‘j=0k(βˆ’1)j(kj)(kβˆ’j)n.\#\operatorname{Surj}([n],[k])=\sum_{S\in\mathcal{P}([k])}(-1)^{\#S}(k-\#S)^{n}=\sum_{j=0}^{k}(-1)^{j}\binom{k}{j}(k-j)^{n}.

Step 4 (derangements fix no point). Now let X=SnX=S_{n} and, for i∈[n]i\in[n], Ai={ΟƒβˆˆSn:Οƒ(i)=i}A_{i}=\{\sigma\in S_{n}:\sigma(i)=i\}. A permutation lies in none of the AiA_{i} exactly when it fixes no point, so Xβˆ–β‹ƒi=1nAi=DnX\setminus\bigcup_{i=1}^{n}A_{i}=D_{n} (Derangements (ii)). For SβŠ†[n]S\subseteq[n], both for S=βˆ…S=\emptyset and for nonempty SS,

AS={ΟƒβˆˆSn:Οƒ(i)=iΒ forΒ everyΒ i∈S}.A_{S}=\{\sigma\in S_{n}:\sigma(i)=i\text{ for every }i\in S\}.

Step 5 (a permutation fixing SS permutes the rest). Let SβŠ†[n]S\subseteq[n], C=[n]βˆ–SC=[n]\setminus S and ΟƒβˆˆAS\sigma\in A_{S}. If a∈Ca\in C and Οƒ(a)=i∈S\sigma(a)=i\in S, then Οƒ(a)=Οƒ(i)\sigma(a)=\sigma(i), so a=i∈Sa=i\in S by injectivity, which is impossible; hence Οƒ(C)βŠ†C\sigma(C)\subseteq C. If b∈Cb\in C, then b=Οƒ(a)b=\sigma(a) for some a∈[n]a\in[n], and aβˆ‰Sa\notin S, since otherwise b=Οƒ(a)=a∈Sb=\sigma(a)=a\in S; hence every b∈Cb\in C is the value of Οƒ\sigma at a point of CC. Therefore the restriction of Οƒ\sigma to CC (Domains and Restrictions of Maps (ii)), taken with codomain CC (Gluing Maps on Disjoint Domains, and Shrinking the Codomain (iii)), is injective and surjective, that is, an element Οƒβˆ£C\sigma|_{C} of Bij⁑(C,C)\operatorname{Bij}(C,C) (The Sets of Injections, Surjections and Bijections between Two Sets (iii)).

Step 6 (restriction is a bijection onto Bij⁑(C,C)\operatorname{Bij}(C,C)). The map ρ:ASβ†’Bij⁑(C,C)\rho:A_{S}\to\operatorname{Bij}(C,C), Οƒβ†¦Οƒβˆ£C\sigma\mapsto\sigma|_{C}, is injective: two elements of ASA_{S} with the same restriction agree on CC, and on SS both are the identity, so they agree on [n]=CβˆͺS[n]=C\cup S. It is surjective: for β∈Bij⁑(C,C)\beta\in\operatorname{Bij}(C,C), gluing Ξ²\beta with the identity map of SS gives a bijection Οƒ:[n]β†’[n]\sigma:[n]\to[n], since C∩S=βˆ…C\cap S=\emptyset and CβˆͺS=[n]C\cup S=[n] (Gluing Maps on Disjoint Domains, and Shrinking the Codomain (i), Gluing Maps on Disjoint Domains, and Shrinking the Codomain (ii)); Οƒ\sigma fixes every point of SS, so ΟƒβˆˆAS\sigma\in A_{S}, and ρ(Οƒ)=Ξ²\rho(\sigma)=\beta. Since #C=nβˆ’#S\#C=n-\#S, Counting through Bijections, Injections and Surjections (i) and Counting Maps, Injections, Bijections and Permutations (iii) give

#AS=#Bij⁑(C,C)=(nβˆ’#S)!.\#A_{S}=\#\operatorname{Bij}(C,C)=(n-\#S)!.

Step 7 ((ii)). By Steps 4 and 6 and The Principle of Inclusion and Exclusion (i) with m=nm=n, and then Counting Subsets (iii) with A=[n]A=[n] and the map g:N0β†’Rg:\mathbb{N}_{0}\to\mathbb{R} given by g(j)=(βˆ’1)j(nβˆ’j)!g(j)=(-1)^{j}(n-j)! for j≀nj\le n and g(j)=0g(j)=0 for j>nj>n (Maps Defined by Cases (i)), whose value at #S\#S is (βˆ’1)#S(nβˆ’#S)!(-1)^{\#S}(n-\#S)! (as #S≀n\#S\le n for SβŠ†[n]S\subseteq[n]),

#Dn=βˆ‘S∈P([n])(βˆ’1)#S(nβˆ’#S)!=βˆ‘j=0n(βˆ’1)j(nj)(nβˆ’j)!.\#D_{n}=\sum_{S\in\mathcal{P}([n])}(-1)^{\#S}(n-\#S)!=\sum_{j=0}^{n}(-1)^{j}\binom{n}{j}(n-j)!.

Step 8 ((iii)). Let j∈{0,…,n}j\in\{0,\dots,n\}. By Binomial Coefficients: Existence and Uniqueness by Pascal's Recursion, Vanishing above the Diagonal, Diagonal and First Values, the Factorial Formula and Symmetry (v), j! (nβˆ’j)!(nj)=n!j!\,(n-j)!\binom{n}{j}=n!. As j!β‰ 0j!\neq0 in R\mathbb{R} (Natural Numbers and Factorials Read in the Reals: the Order Carries Over, One Is Least, and Factorials Are Positive, Recursive and Nondecreasing (iii)), dividing by j!j! gives

(nj)(nβˆ’j)!=n!j!.\binom{n}{j}(n-j)!=\frac{n!}{j!}.

Substituting this into Step 7 and taking the common factor n!n! out of the sum (Sums over Finite Sets in a Commutative Ring and in an Ordered Field: Distributivity, Products of Sums, Vanishing Terms, Sums over Pairs, Expanding Products of Sums, Counting, Comparison, Monotonicity and the Triangle Inequality (i)),

#Dn=βˆ‘j=0n(βˆ’1)jn!j!=n!βˆ‘j=0n(βˆ’1)jj!.\#D_{n}=\sum_{j=0}^{n}(-1)^{j}\frac{n!}{j!}=n!\sum_{j=0}^{n}\frac{(-1)^{j}}{j!}.

Citations

Loading…

Dependencies

Uses0

Loading…

Comments

Log in to comment.

Loading…