๐Ÿ  Home โ€บ ๐Ÿ”บ Pascal's Triangle โ€บ Lesson 4

๐Ÿ” Row Sums โ€” 2โฟ, Proved Twice, and the Alternating Sum

๐Ÿ“– Lesson 4 of 10

๐Ÿ“Œ Key ideas of this section

C(n, 0) + C(n, 1) + ... + C(n, n) = 2โฟ.   Two proofs!
C(n, 0) โˆ’ C(n, 1) + C(n, 2) โˆ’ ... ยฑ C(n, n) = 0   (for n โ‰ฅ 1)
Consequence: even-position entries and odd-position entries
each add up to exactly 2โฟโปยน โ€” every row splits in half.

The doubling pattern

Add up the rows: 1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048 โ€” row n sums to 2โฟ. Every row doubles the one before it, and it keeps working for every row you check. Now let's prove it MUST work. Two proofs, because they're so different.

Proof A โ€” the doubling mechanism (look at how rows are built)

Every entry of row n โˆ’ 1 is a parent to exactly TWO entries of row n: its below-left child and its below-right child. So when row n โˆ’ 1 pours itself into row n, every entry gets counted exactly twice:

sum of row n = 2 ร— (sum of row n โˆ’ 1)

Row 0 sums to 1 = 2โฐ, and doubling from there gives 2ยน, 2ยฒ, 2ยณ, ... So row n sums to 2โฟ. โˆŽ

Proof B โ€” count the subsets (look at what the sum MEANS)

Take a set with n elements โ€” say 7 friends. Every subset (group of friends) has some size k, and C(n, k) counts exactly the size-k subsets. Adding C(n, 0) + C(n, 1) + ... + C(n, n) therefore counts ALL subsets of every size.

Now count all subsets a completely different way: build a subset by walking down the line of friends and deciding, for each one, "in or out?" That's 2 choices per friend, n friends, and choices multiply:

total subsets = 2 ร— 2 ร— ... ร— 2 (n times) = 2โฟ

Two ways to count the same collection must give the same number, so the row sum is 2โฟ. โˆŽ

Compare the proofs (this is worth a moment): Proof A is mechanical โ€” it watches the machine run. Proof B is meaningful โ€” it says the row sum IS the count of all subsets. Competition problems often need the second viewpoint: "how many subsets does a 7-element set have?" is instantly 2โท = 128 if you think like Proof B.

The alternating sum โ€” every row's secret split

Now subtract instead of adding, with signs alternating + โˆ’ + โˆ’ ...:

Row 4:  1 โˆ’ 4 + 6 โˆ’ 4 + 1 = 0
Row 5:  1 โˆ’ 5 + 10 โˆ’ 10 + 5 โˆ’ 1 = 0

Zero, both times! Claim: for every n โ‰ฅ 1,

C(n, 0) โˆ’ C(n, 1) + C(n, 2) โˆ’ ... ยฑ C(n, n) = 0

The proof is one line long, but it needs the Binomial Theorem, so it's coming in Lesson 6 (spoiler: 0 = 0โฟ = (1 + (โˆ’1))โฟ). For now we've verified it, and here's the payoff: move the negative terms to the other side and the equation says

(even-position entries) = (odd-position entries)

Together they total 2โฟ (the row sum), so EACH side sums to 2โฟโปยน. Every row splits exactly in half between its even and odd positions!

Verify on row 9 (1 9 36 84 126 126 84 36 9 1):

Even positions (entries 0, 2, 4, 6, 8):  1 + 36 + 126 + 84 + 9 = 256
Odd positions (entries 1, 3, 5, 7, 9):   9 + 84 + 126 + 36 + 1 = 256
And 256 = 2โธ = 2โนโปยน โœ…

Application: a set with n elements has exactly 2โฟโปยน even-sized subsets and 2โฟโปยน odd-sized ones. (Even positions count even-sized subsets โ€” same numbers!) A 7-element set: 64 even-sized subsets, 64 odd-sized ones, 128 total.

โœ๏ธ Your Turn!

Verify the even/odd split on row 8 (1 8 28 56 70 56 28 8 1) by adding each half.

๐Ÿ‘€ Show the answers

Answer: even positions (0, 2, 4, 6, 8): 1 + 28 + 70 + 28 + 1 = 128. Odd positions (1, 3, 5, 7): 8 + 56 + 56 + 8 = 128. Both equal 128 = 2โท โœ…

V.3.1