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, squares in the th row for 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 or a 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 ’s and ’s in the bottom row is the number in the top square a multiple of

Your answer
Integer from 0 to 999
Show solution
Solution
Label the bottom-row entries Since each square is the sum of the two below it, the contributions accumulate with Pascal’s-triangle weights: the top square equals
Modulo direct checking (or Lucas’ theorem with ) shows that for while and So the top square is a multiple of exactly when
Because the four entries are or their sum is divisible by only when it is or either all four are (one way) or exactly three are (four ways), for choices. The remaining seven entries are free, so the count is
Tagged: Pascal’s Triangle · modular arithmetic · multiplication principle