Skip to main content

2007 AIME II Problem 13

Problem 13 of 15HarderNumber TheoryCombinatorics

A triangular array of squares has one square in the first row, two in the second, and, in general, kk squares in the kkth row for 1≤k≤11.1 \le k \le 11. With the exception of the bottom row, each square rests on two squares in the row immediately below, as illustrated in the figure. In each square of the eleventh row, a 00 or a 11 is placed. Numbers are then placed into the other squares, with the entry for each square being the sum of the entries in the two squares below it. For how many initial distributions of 00’s and 11’s in the bottom row is the number in the top square a multiple of 3?3?

Your answer

Integer from 0 to 999
Show solution

Solution

Label the bottom-row entries x0,x_0, x1,x_1, …,\ldots, x10.x_{10}. Since each square is the sum of the two below it, the contributions accumulate with Pascal’s-triangle weights: the top square equals ∑i=010(10i)xi.\sum_{i=0}^{10} \binom{10}{i} x_i. Modulo 3,3, direct checking (or Lucas’ theorem with 10=101310 = 101_3) shows that for 2≤i≤8,2 \le i \le 8, (10i)≡0,\binom{10}{i} \equiv 0, while (100)=(1010)=1\binom{10}{0} = \binom{10}{10} = 1 and (101)=(109)=10≡1.\binom{10}{1} = \binom{10}{9} = 10 \equiv 1. So the top square is a multiple of 33 exactly when x0+x1+x9+x10x_0 + x_1 + x_9 + x_{10} ≡0(mod3).\equiv 0 \pmod 3. Because the four entries are 00 or 1,1, their sum is divisible by 33 only when it is 00 or 3:3: either all four are 00 (one way) or exactly three are 11 (four ways), for 55 choices. The remaining seven entries x2,x_2, …,\ldots, x8x_8 are free, so the count is 5⋅27=640.5 \cdot 2^7 = 640.
AoPS wiki

Tagged: Pascal’s Triangle · modular arithmetic · multiplication principle

More practice