๐ Key ideas of this section
P(exactly k heads in n flips) = C(n, k) / 2โฟ. "At least one" problems: count the complement. Odd entries in row n: 2 raised to (number of 1s in n's binary). If p is PRIME, every interior entry of row p is divisible by p โ proved below.
Binomial probability
Flip n coins. There are 2โฟ total outcomes (row sum!), and exactly k heads happens in C(n, k) of them. So:
P(k heads in n flips) = C(n, k) / 2โฟ
Example: P(exactly 2 heads in 4 flips) = C(4, 2) / 16 = 6/16 = 3/8.
Complementary counting strikes again: what's the probability of AT LEAST ONE head in 6 flips? Counting head-counts 1 through 6 directly means six terms. Instead:
P(at least one) = 1 โ P(zero heads) = 1 โ C(6, 0)/2โถ = 1 โ 1/64 = 63/64 โ
One subtraction beats six additions โ remember this shape.
The middle is the most likely. An exact heads-tails split in 6 flips: C(6, 3)/64 = 20/64 = 5/16 โ 0.31. In 8 flips: C(8, 4)/256 = 70/256 = 35/128 โ 0.27. More flips make a perfect split LESS likely โ the row sums grow faster than the middles.
Parity โ the odd-entry census
Count the ODD entries in each row:
Row: 0 1 2 3 4 5 6 7 Odds: 1 2 2 4 2 4 4 8
All powers of 2! And the exponent has a secret source: the binary form of the row number. Row 6 in binary is 110, which has two 1s โ 2ยฒ = 4 odd entries โ . Row 7 is 111, three 1s โ 2ยณ = 8 โ every entry of row 7 is odd! The all-odd rows are exactly 0, 1, 3, 7, 15, ... = 2แต โ 1, whose binary forms are all 1s. (The full proof is a college-level gem called Lucas's theorem; here we collect the evidence and conjecture like real mathematicians.) Color the odd entries black on a huge triangle and the Sierpinski fractal appears โ the same pattern, at every scale, forever.
The prime row theorem โ with proof
Theorem: if p is prime and 0 < k < p, then p divides C(p, k).
Proof: C(p, k) = p! / (k!(p โ k)!) is a whole number โ it counts committees, and committee counts are integers. The top p! = p ร (p โ 1) ร ... ร 1 contains the factor p. The bottom k!(p โ k)! is a product of numbers all STRICTLY SMALLER than p. Since p is prime, no product of smaller numbers contains p as a factor (that "no smaller factors" property is exactly what primeness means), so nothing downstairs can cancel the p upstairs. The quotient is an integer still carrying the factor p โ so p divides C(p, k). โ
Verify row 7: 7, 21, 35 = 7ร1, 7ร3, 7ร5. โ Verify row 11: 11, 55, 165, 330, 462 = 11ร1, 11ร5, 11ร15, 11ร30, 11ร42. โ
Composite rows FAIL: row 6's entry 15 is not divisible by 6. The proof tells you why: 6 = 2 ร 3 can be built from smaller factors, so the denominator CAN cancel pieces of it. The hypothesis "p is prime" was load-bearing!
Fibonacci hiding in the triangle โ and the reason why
The shallow diagonals (slicing up-right) sum to 1, 1, 2, 3, 5, 8, 13, 21 โ the Fibonacci sequence, where each number is the sum of the two before it. Why must that continue? Watch the diagonal summing to 13 get built from its parents:
13-diagonal: C(6,0) + C(5,1) + C(4,2) + C(3,3) = 1 + 5 + 6 + 1
Parents: C(6,0) matches C(5,0) of the 8-diagonal (edge);
C(5,1) = C(4,0) + C(4,1) โ one parent from the 5-diagonal, one from the 8;
C(4,2) = C(3,1) + C(3,2) โ same split;
C(3,3) matches C(2,2) of the 5-diagonal (edge).
Every entry of the 8-diagonal and the 5-diagonal is used exactly once, so
13-diagonal sum = 8 + 5. โ
Each new shallow diagonal sums to the previous diagonal plus the one before it โ Fibonacci's rule itself, starting from 1 and 1. The triangle didn't just contain the Fibonacci numbers; it GENERATES them.
โ๏ธ Your Turn!
- (a)Verify the prime row theorem for row 11's entry 462 by dividing.
- (b)Row 9 in binary is 1001 โ two 1s, so the census predicts 2ยฒ = 4 odd entries. Check row 9.
๐ Show the answers
Answer: (a) 462 รท 11 = 42 exactly โ . (b) Row 9: 1 9 36 84 126 126 84 36 9 1 โ the odd entries are 1, 9, 9, 1: exactly 4, as predicted โ .