Skip to main content
OlympiadHQ

Browse · MathNet

Print

SAUDI ARABIAN MATHEMATICAL COMPETITIONS

Saudi Arabia counting and probability

Problem

Let Pascal triangle be an equilateral triangular array of numbers, consisting of rows and except for the numbers in the bottom row, each number is equal to the sum of two numbers immediately below it. How many ways to assign each of numbers (from left to right) in the bottom row by or such that the number on the top is divisible by .
Solution
First, by induction, one can show that if the Pascal triangle consists of rows.

Note that for any odd prime , we also have:

Claim 1. . Indeed, The numerator is congruent to so .

Claim 2. for and . Indeed, Since so we can suppose . Similar calculation, we have The numerator is divisible by while since so we are done.

From this, we can conclude that, if then is divisible by . This only happens when all of them are equal to .

The other numbers can be assigned any of or so the number of ways is .
Final answer
2^{2016}

Techniques

Algebraic properties of binomial coefficientsInduction / smoothingModular Arithmetic