Discrete MathematicsBinomial Coefficients and Pascal's Triangle1 of 4
Binomial Coefficients and Pascal's Triangle · 1
Pascal's Triangle and Its Patterns
Computing combinations one factorial at a time gets slow, so we arrange all of them into a single triangle where each number builds the ones below it.
1
Building Pascal's Triangle by Counting Grid Paths
We want to know why adding the two numbers directly above a spot in Pascal's Triangle counts the number of ways to reach that spot.
Building Pascal's Triangle by Counting Grid Paths
Text solution
Split the paths by their last stepEvery path from the top corner to the spot below 4 and 6 must pass through one of those two spots right before landing.
Add the two path countsStepping down-right from the 4-spot or down-left from the 6-spot gives all paths to the new spot without overlap.
from above-left4+from above-right6=total paths to the spot10
In this grid, every path from the top corner to a chosen spot arrives through either the spot above-left or the spot above-right, splitting the total count into those two groups.
Every path from the top corner to a spot arrives through one of the two spots directly above it, splitting the total paths into those two groups.
2
Combinations and Pascal's Identity
To locate any entry without counting rows and spaces by hand, we label each spot by the total number of steps n from the top and the number of Right steps k.
Row n, Position k(kn)=paths of n steps with k steps Right
Because choosing which k of the n steps go Right is the exact same yes-or-no decision as choosing k items out of n, each entry in the triangle is a combination, and the rule of adding the two numbers above it becomes an algebraic identity.
Combinations and Pascal's Identity
Text solution
Single out one personWhen choosing 3 friends out of 5 for a road trip, every possible group either includes Alice or leaves her out.
Count the groups with Alice inWith Alice taking 1 seat, we choose the remaining 2 seats from the other 4 friends, which is Row 4, Position 2.
(24)=6
Count the groups with Alice outWith Alice staying home, we choose all 3 seats from the other 4 friends, which is Row 4, Position 3.
(34)=4
Add the two casesCombining the two non-overlapping cases gives the entry at Row 5, Position 3.
Instead of looking at one spot at a time, we can read across an entire row to see why its left and right halves match and what all of its entries add up to.
Row Symmetry and Row Sums
Text solution
Match included and excluded friendsChoosing k friends to invite automatically chooses the remaining n−k friends to leave behind, so symmetric positions across a row are equal.
(kn)=(n−kn)
Add all entries in Row 4Adding across Row 4 counts all subsets of any size from 4 friends, which is the same as making a Yes-or-No choice for each friend.
When we add entries along a diagonal slanting down-left from a 1 on the right edge, the entire sum equals the single entry one step down and one step to the right of the last entry.
Diagonals and the Hockey Stick Identity
Text solution
Sum the first 50 counting numbersRewrite 1+2+3+⋯+50 along the Position 1 diagonal starting at (11)=1, then step one row down and one position right.
(11)+(12)+(13)+⋯+(150)=(251)=251×50=1275
Rewrite the first 50 triangular numbers on the Position 2 diagonalSince the k-th triangular number is (2k+1), the 1st is (22) and the 50th is (251).
Step down-right to the hockey-stick tipThe diagonal starts at (22)=1 on the edge, so the sum is the single entry one row below and one position to the right of (251).
Hockey Stick Identity:(rr)+(rr+1)+(rr+2)+⋯+(rn)=(r+1n+1)
Along any diagonal starting at a 1 on the right edge, breaking the tip entry into the two entries above it peels off one diagonal term at a time until only that top 1 remains.
Every interior entry in Pascal's Triangle is the sum of the diagonal running down-left from a 1 on the right edge to the spot above-left of that entry.
6
Odds, Evens, and Sierpinski's Triangle
Even if we ignore the exact sizes of the numbers and only track whether each entry is odd or even, the addition rule still creates a repeating geometric pattern.
Odds, Evens, and Sierpinski's Triangle
Text solution
Build Row 4 below an all-odd Row 3The outer edges stay 1 (Odd), while every interior spot adds two Odd numbers from Row 3(1,3,3,1) to become Even.
Build Row 5 from Row 4The middle entries add Even+Even=Even, while each outer 1 adds to its neighboring Even entry to give Odd+Even=Odd, starting two new odd triangles at the edges.
Key concepts
Every entry (kn) in Pascal's Triangle records the number of ways to make k Right (or "Yes") choices out of n two-way steps, starting at Row 0 at the top 1 and Position 0 on the far left. Because each step is a two-way choice, the question you are asked tells you which direction to read the triangle:
One spot from the row above (Pascal's Identity)
When you already know the adjacent entries in Row n−1, add them instead of computing factorials: (kn)=(k−1n−1)+(kn−1), such as (35)=(24)+(34)=6+4=10. The left term (k−1n−1) counts groups with a specific item in, and the right term (kn−1) counts groups with that item out.
One term in an algebra expansion
In (x+y)n, the coefficient of xn−kyk is (kn) because k brackets are chosen to supply y, such as 4x3y in (x+y)4 having coefficient (14)=4.
Across a row (Symmetry and Row Sums)
When the top number n stays fixed and the bottom number runs from 0 to n, you are summing across Row n:(0n)+(1n)+⋯+(nn)=2n, such as Row 4 adding to 24=16. If a sum only covers the first half of an odd-numbered row, pair symmetric entries using (kn)=(n−kn) to take half of 2n.
Down a diagonal (Hockey Stick Identity)
When the bottom number r stays fixed and the top number climbs from r to n, you are walking down-left along a diagonal, so the sum equals (r+1n+1): for example, (22)+(23)+(24)=(35)=10. Do not apply this formula straight away if the sum does not start at (rr)=1 on the edge (and do not confuse it with a row sum where the top number is fixed).
7
Practice
1
Starting at the top of Pascal's Triangle, you take 5 steps Down-Left and 3 steps Down-Right in some order. Which row and position do you land on, and how many different paths from the top reach that spot?
Watch out for the common slip of writing Row 5, Position 3 by using the 5 Left steps as the row number instead of the total steps 5+3=8, which would give (35)=10.
What does the row number count about your walk, and which direction do the position numbers count?
You take 5+3=8 steps in total and 3 steps to the Right, so you land on Row 8, Position 3 (watch out for the common slip of writing Row 5, Position 3 by using the 5 Left steps as the row number instead of the total steps 5+3=8, which would give (35)=10). The number of paths to that spot is
(38)=3×2×18×7×6=56
2
In Row 9 of Pascal's Triangle, Position 3 is (39)=84 and Position 4 is (49)=126. Without using factorials, find the number at Row 10, Position 4, and explain what the two numbers 84 and 126 count when choosing a 4-person road trip group from 10 friends (including Alice).
If Alice is already in the car, how many seats are left to fill from the remaining 9 friends?
By Pascal's Identity, Row 10, Position 4 is
(410)=(39)+(49)=84+126=210
Here 84=(39) counts the groups of 4 that include Alice (choosing the remaining 3 seats from the other 9 friends), and 126=(49) counts the groups of 4 that leave Alice out (choosing all 4 seats from the other 9 friends). Be careful not to swap the two cases and assign 126=(49) to "Alice is in": once Alice takes a seat, only 3 seats remain to be chosen.
3
Use Row 4 of Pascal's Triangle (1,4,6,4,1) to write out the full expansion of (x+y)4, and explain why the coefficient of x3y is 4 by counting choices from the four brackets (x+y)(x+y)(x+y)(x+y).
As you move across the expansion from left to right, how many brackets give a y in each term?
Using the coefficients 1,4,6,4,1 from Row 4 (don't count from 1 at the top and accidentally grab Row 3,1,3,3,1), the expansion is
(x+y)4=1x4+4x3y+6x2y2+4xy3+1y4
To form an x3y term, you must pick y from 1 of the 4 brackets and x from the remaining 3 brackets; there are (14)=4 ways to choose which bracket supplies the y.
4
Using the total sum of Row 7 and the symmetry of Pascal's Triangle, find the sum of the first four entries of Row 7:(07)+(17)+(27)+(37).
How many total entries are in Row 7, and how does each entry in the first four match up with an entry in the last four?
The sum of all eight entries in Row 7 is 27=128. By row symmetry, (07)=(77),(17)=(67),(27)=(57), and (37)=(47) (remember that Row 7 has 8 entries, so it splits cleanly into two equal halves of 4 without a leftover middle number). The first four entries have the exact same sum as the last four entries, so their sum is
2128=64
5
Use the Hockey Stick Identity to evaluate (33)+(34)+(35)+(36)+(37)+(38)+(39).
Make sure to add 1 to both the top and bottom numbers of (39); leaving one unchanged gives the common wrong answers (310)=120 or (49)=126.
Check that the sum starts at 1 on the right edge, then see what one step down and one step to the right does to the row and position numbers of (39).
The sum starts at (33)=1 on the right edge and walks down-left along the Position 3 diagonal to (39). By the Hockey Stick Identity, the sum equals the entry one row down and one position to the right, which is (410) (make sure to add 1 to both the top and bottom numbers of (39); leaving one unchanged gives the common wrong answers (310)=120 or (49)=126):
(410)=4×3×2×110×9×8×7=210
6
Find the sum of the first 20 triangular numbers: 1+3+6+10+⋯+210.
The 20th triangular number is (221). Don't write (220) for the 20th term, which shifts the final answer to (321)=1330.
Since the 1st triangular number is (22)=1 and the 2nd is (23)=3, which binomial coefficient is the 20th triangular number?
The k-th triangular number is (2k+1), so the 20th triangular number is (221) (don't write (220) for the 20th term, which shifts the final answer to (321)=1330). Rewriting the sum along the Position 2 diagonal gives (22)+(23)+(24)+⋯+(221), and by the Hockey Stick Identity this diagonal sum equals
(322)=3×2×122×21×20=1540
7
Every entry in Row 7 of Pascal's Triangle is odd (1,7,21,35,35,21,7,1). Without computing the entries, find how many odd numbers and how many even numbers appear in Row 8, and then in Row 9.
Remember how many total entries sit in Row n, and track what happens at the outer 1s versus the interior sums.
Row 8 has 8+1=9 entries in total (don't forget the +1 and count only 8 entries, which gives 2 odd and 6 even). Its two outer 1s are odd, and each of the 7 interior entries is the sum of two odd numbers from Row 7, which is even; so Row 8 has 2 odd numbers and 7 even numbers. In Row 9(10 entries), the outer 1s on each end are odd, the entry next to each outer 1 is Odd+Even=Odd, and the 6 middle entries are each Even+Even=Even; so Row 9 has 4 odd numbers and 6 even numbers.