Freeks/11d.book(保存済みの内容) … 編集へ / ファイル一覧へ

The ballot problem (alternative proof: induction directly on the ratio form)
import /Freeks/5.book

An alternative proof of #30 (the ballot problem) in 11.book. The main theorem has the same form as in 11.book. Book 11 first proves the difference form \(N(p,r+1) + \binom{m}{r} = \binom{m}{r+1}\) by induction on \(m\) and then converts it to the ratio form. This book proves the ratio form \((p+q)\,N(p,q) = (p-q)\binom{p+q}{q}\) directly, by induction on \(p+q\), from the recurrence and the relations among binomial coefficients (absorption identity, symmetry, Pascal); the difference form is not used.

1 #30b The ballot problem (alternative proof) forget

The ballot problem: in a count where \(A\) gets \(p\) votes and \(B\) gets \(q\) votes (\(p > q\)), the number of orderings in which \(A\) stays strictly ahead of \(B\) throughout is \(N(p,q) = \frac{p-q}{p+q}\binom{p+q}{q}\).
We assume \(N\) is a function satisfying the counting recurrence (existence is not shown): \(N(p+1, 0) = 1\). If \(p \le q + 1\), then \(N(p, q+1) = 0\). If \(q < p\), splitting by whether the last vote is for \(A\) or \(B\) gives \(N(p+1, q+1) = N(p, q+1) + N(p+1, q)\).

1.1 Symmetry and relations of binomial coefficients

Choosing from \(n\) items, the number of ways to choose \(a\) equals the number of ways to choose \(b = n - a\) (from \(\binom{a+b}{a}\,a!\,b! = (a+b)!\)).
The ratio of \(\binom{m+1}{q+1}\) to \(\binom{m+1}{q}\) (\(m = p + q\)): \((q+1)\binom{m+1}{q+1} = (p+1)\binom{m+1}{q}\). This follows from the absorption identity and symmetry.

1.2 Computations with numbers

A natural number plus 1 is not 0.
The computation used in one inductive step: if \(p = q + j + 1\), \(M = p + q + 1\), \(M a = j Y\), \(M b = (j+2) X\), \((q+1) Y = (p+1) X\), \(c = a + b\), and \(T = X + Y\), then \((M+1) c = (j+1) T\). We avoid division: multiply both sides by \(M\) and \(q+1\), then cancel.

1.3 One inductive step

When \(p = q + j + 1\), if the ratio form holds at \((p, q+1)\) and \((p+1, q)\), then it holds at \((p+1, q+1)\) too. Use the recurrence \(N(p+1,q+1) = N(p,q+1) + N(p+1,q)\), Pascal's relation for binomial coefficients, and then the computation above.

1.4 Induction (on \(p + q\))

For every pair \(p + q = m\), \((p,q)\), if \(p = q + k\) then \((p+q)\,N(p,q) = k\binom{p+q}{q}\); we prove this by induction on \(m\). The case \(q = 0\) is \(N(p+1,0) = 1\). The case \(k = 0\) (\(p = q\)) is \(N = 0\). The case \(k = j + 1\) reduces by the recurrence to \((p-1, q)\) and \((p, q-1)\), and then the computation above applies.

1.5 The ballot problem

Just put \(m = p + q\) (\(p = q + k\)) in the result of the induction above: \((p+q)\,N(p,q) = k\binom{p+q}{q}\), that is, \(N(p,q) = \frac{p-q}{p+q}\binom{p+q}{q}\).
\(\begin{cases} \forall p , q \in \mathbb{M} . ( N ( p ) ) ( q ) \in \mathbb{M} \\ \forall p \in \mathbb{M} . ( N ( p + 1 ) ) ( 0 ) = 1 \\ \forall p , q \in \mathbb{M} . ( p \le q + 1 \Longrightarrow ( N ( p ) ) ( q + 1 ) = 0 ) \\ \forall p , q \in \mathbb{M} . ( q < p \Longrightarrow ( N ( p + 1 ) ) ( q + 1 ) = ( N ( p ) ) ( q + 1 ) + ( N ( p + 1 ) ) ( q ) ) \end{cases} , p , q , k \in \mathbb{M} , p = q + k \Longrightarrow ( p + q ) \cdot ( N ( p ) ) ( q ) = k \cdot ( ( p + q ) \mathrm{C} q )\) \(\blacktriangleleft\) \(\mathbb{W}.\) ,\(0 \in \mathbb{M}\) ,𝕄0 ,INDC ,ℤ+ ,ax_s ,Lc∈ ,LP ,LC0 ,Lrel ,Lalg ,Lcore ,Lnz ,Lsym ,Lind30 ,⋅𝕄:D ,⋅0X

イベント 9 件