7 #58 Number of combinations
Number of bijections \(n!\), and number of combinations \(\binom{k+m}{k}\,k!\,m! = (k+m)!\).
7.1 Number of bijections
In general, the set of all bijections satisfying \(z \mapsto a\), namely \(f\) (those with \(f \setminus \{\langle z, a\rangle\} \in G\)), corresponds one-to-one with \(G\) (LFibK).
LFibK …
\(z \in X , a \in Y , F = \{ f \mid f \in X \stackrel{\rm IS}\to Y , \langle z , a \rangle \in f , f \mathop\setminus \{ \langle z , a \rangle \} \in G \} , \forall g \, ( g \in G \Longrightarrow g \in X \mathop\setminus \{ z \} \stackrel{\rm IS}\to Y \mathop\setminus \{ a \} ) \Longrightarrow F \stackrel{\#}= G\) \(\blacktriangleleft\) \(\mathbb{W}.\) ,Axℤ ,ax_sThe number of bijections with \(z \mapsto a\) equals the number of bijections from \(X \setminus \{z\}\) to \(Y \setminus \{a\}\).
LFib …
\(z \in X , a \in Y , F = \{ f \in X \stackrel{\rm IS}\to Y \mid \langle z , a \rangle \in f \} \Longrightarrow F \stackrel{\#}= X \mathop\setminus \{ z \} \stackrel{\rm IS}\to Y \mathop\setminus \{ a \}\) \(\blacktriangleleft\) LFibK ,\(\mathbb{W}.\) ,ax_sIf the bijections from \(k\) elements to \(k\) elements number \(k!\), then bijections from \(k+1\) elements to \(k+1\) elements number \(k! \cdot (k+1)\) (split by where \(z\) goes).
LIS …
\(k \in \mathbb{M} , \forall U , V \, ( \operatorname{\#} U = \operatorname{\#} V = k \Longrightarrow \operatorname{\#} ( U \stackrel{\rm IS}\to V ) = k ! ) , \operatorname{\#} X = \operatorname{\#} Y = k + 1 , z \in X \Longrightarrow \operatorname{\#} ( X \stackrel{\rm IS}\to Y ) = k ! \cdot ( k + 1 )\) \(\blacktriangleleft\) \(\mathbb{W}.\) ,Axℤ ,ax_s ,!𝕄 ,⋅0XThe number of bijections is \(n!\) (induction on \(n\)).
→IS=#! …
\(\operatorname{\#} U = \operatorname{\#} V = n \in \mathbb{M} \Longrightarrow \operatorname{\#} ( U \stackrel{\rm IS}\to V ) = n !\) \(\blacktriangleleft\) \(\mathbb{W}.\) ,Axℤ ,ax_s ,!𝕄 ,!∈𝕄 ,LIS7.2 Complements and restrictions
Restricting a bijection \(f\) to a part \(K\) gives a bijection from \(K\) onto its image.
For a bijection, the image of a complement is the complement of the image.
A bijection \(f\) splits into the part on \(K\) and the part on \(X \setminus K\).
Conversely, joining bijections \(K \to A\) and \(X \setminus K \to Y \setminus A\) gives a bijection whose image of \(K\) is \(A\).
Bijections for which the image of \(K\) is \(A\) (such an \(f\)) correspond one-to-one to the pairs obtained by restricting \(f\) to \(K\) and \(X \setminus K\).
From a set of \(k+m\) elements, removing a \(k\)-element subset leaves \(m\) elements.
Lcmp …
\(k , m \in \mathbb{M} , \operatorname{\#} X = k + m , A \subset X , \operatorname{\#} A = k \Longrightarrow \operatorname{\#} ( X \mathop\setminus A ) = m\) \(\blacktriangleleft\) \(\mathbb{W}.\) ,AxℤA subset has the same number of elements as its image under a bijection.
L*# …
\(A \subset X , h \in X \stackrel{\rm IS}\to Y \Longrightarrow A \stackrel{\#}= h ( A )\) \(\blacktriangleleft\) \(\mathbb{W}.\)For a set of \(n\) elements, its \(k\)-element subsets number \(n \text{ choose } k\).
Lch …
\(n , k \in \mathbb{M} , \operatorname{\#} X = n \Longrightarrow \exists S \, S = \{ A \mid A \subset X , \operatorname{\#} A = k \} , \operatorname{\#} S = n \mathrm{C} k\) \(\blacktriangleleft\) \(\mathbb{W}.\) ,Axℤ ,ax_s ,AxCThe bijections whose image of \(K\) is \(A\) number \(k! \cdot m!\).
Lfk …
\(k , m \in \mathbb{M} , \operatorname{\#} D = k + m , K \subset D , \operatorname{\#} K = k , A \subset D , \operatorname{\#} A = k , G = \{ f \in D \stackrel{\rm IS}\to D \mid f ( K ) = A \} \Longrightarrow \operatorname{\#} G = k ! \cdot m !\) \(\blacktriangleleft\) \(\mathbb{W}.\) ,Axℤ ,ax_s ,!𝕄 ,⋅0XA number of combinations is a natural number (since the set of all subsets of an \(n\)-element set, \(℘\), is finite).
7.3 Proof 1 (counting bijections by cases) forget
Take the bijections of \(D = K \cup M\) (\(K\) has \(k\) elements and \(M\) has \(m\)), \(f\), and split them by the image of \(K\), \(f[K]\) (a subset of \(D\) with \(k\) elements). For every image \(A\), the \(f\) giving it correspond one-to-one to pairs of bijections \(K \to A\) and \(M \to D \setminus A\), so there are \(k! \cdot m!\) of them. Hence \((k+m)! = {}_{k+m}\mathrm{C}_{k} \cdot k! \cdot m!\).
Lmain …
\(k , m \in \mathbb{M} , \operatorname{\#} D = k + m , K \subset D , \operatorname{\#} K = k \Longrightarrow ( k + m ) \mathrm{C} k \cdot ( k ! \cdot m ! ) = ( k + m ) !\) \(\blacktriangleleft\) \(\mathbb{W}.\) ,Axℤ ,ax_s ,!𝕄 ,Lch ,Lc∈ ,⋅0XRelation between the number of combinations and factorials.
\(k , m \in \mathbb{M} \Longrightarrow ( k + m ) \mathrm{C} k \cdot k ! \cdot m ! = ( k + m ) !\) \(\blacktriangleleft\) \(\mathbb{W}.\) ,Axℤ ,ax_s ,!𝕄 ,↑0X ,⋅0X ,Lmain ,Lc∈7.4 Proof 2 (absorption identity)
Number of combinations: \(\binom{k+m}{k}\,k!\,m! = (k+m)!\). Shown by induction.
Preparation for the number of combinationsA pair \((A, a)\) (\(a \in A\)) is represented by a set whose value at \(0\) is \(a\) and whose value at \(1\) is \(A\), namely \(\{(0,a),(1,A)\}\).
Pairs whose value at \(1\) is \(A\) correspond one-to-one to the elements of \(A\).
A pair whose value at \(0\) is \(a\), \(\{(0,a),(1,A)\}\), corresponds one-to-one to \(A \setminus \{a\}\) (a subset of \(X \setminus \{a\}\) with \(k\) elements).
Counting all pairs \((A, a)\) by \(A\) gives \((k+1) \cdot {}_{n+1}\mathrm{C}_{k+1}\), and by \(a\) gives \({}_{n}\mathrm{C}_{k} \cdot (n+1)\) (absorption identity).
Absorption identity (without choosing sets).
LAb …
\(n , k \in \mathbb{M} \Longrightarrow ( k + 1 ) \cdot ( ( n + 1 ) \mathrm{C} ( k + 1 ) ) = n \mathrm{C} k \cdot ( n + 1 )\) \(\blacktriangleleft\) \(\mathbb{W}.\) ,Axℤ ,ax_s ,Lch ,LAbTFactorial formulaFor a set of \(n = k + m\) elements, the number of \(k\)-element subsets, \(n \mathrm{C} k\), is \(\dfrac{n!}{k!\,m!}\). Avoiding division, in the form \(n \mathrm{C} k \cdot (k!\,m!) = n!\), it is shown by repeating the absorption identity in \(k\).
\(k , m \in \mathbb{M} \Longrightarrow ( k + m ) \mathrm{C} k \cdot k ! \cdot m ! = ( k + m ) !\) \(\blacktriangleleft\) \(\mathbb{W}.\) ,Axℤ ,ax_s ,!𝕄 ,Lc∈ ,LAb ,LC0 ,⋅0X7.5 Proof 3 (Pascal's recurrence)
PreparationRemoving one point decreases the count by 1.
The empty set has no subsets with \(k+1\) elements.
Of the set of \(n+1\) elements \(Y \cup \{x\}\) (\(x \notin Y\)), the subsets with \(k+1\) elements split into those not containing \(x\) (the subsets of \(Y\) with \(k+1\) elements) and those of the form \(B \cup \{x\}\) (\(B\) is a subset of \(Y\) with \(k\) elements).
Since \(x \notin Y\), \(B \mapsto B \cup \{x\}\) is injective, and the two groups are disjoint.
Pascal's recurrence.
Factorial formulaIf \(k > n\) then \(n \mathrm{C} k = 0\), and \(n \mathrm{C} n = 1\).
\(k , m \in \mathbb{M} \Longrightarrow ( k + m ) \mathrm{C} k \cdot k ! \cdot m ! = ( k + m ) !\) \(\blacktriangleleft\) \(\mathbb{W}.\) ,Axℤ ,ax_s ,!𝕄 ,LP ,LC0 ,Lnn ,Lc∈ ,⋅0X