Pascal’s Triangle – Prime Number Rows

binomial-coefficientspattern recognitionprime numbers

Most of you know what is a Pascal's Triangle. You add the two numbers above the number you are making to make the new number below.

Picture of a Pascal's Triangle

I've figured that for every prime number row, all numbers on the row (except for the first and last numbers, which must be 1) are divisible by the row number. The row number is also the second or second last number in the row.

The first row is row 0. (the row with a single 1)

For example, row 7 contains $1,7,21,35,35,21,7,1$.

Row 9 is not a prime number, and the numbers that the row has are $1,9,36,84,126,126,84,36,9,1$.

21 and 35 are divisible by 7.

36 and 126 are divisible by 9, but 84 isn't.

With these two examples, we can see that only numbers on prime number rows have this special characteristic.

My way of proving this theory is by doing

$n \choose r$ $\div n$

$n \choose r$ $=nCr$

For this equation $n$ will be the row number and $r$ will be the place of the number in the row;

(The first number, which is $1$ for every row is number place $0$.)

$11 \choose 2$ will give you the second number of row 11, which is 55.

55 is obviously divisible by 11, which equals to 5, and 11 is a prime.

We know that the numbers of a row equal to the row number $- 1$, so row 11 has 8 numbers. (excluding the first 2 numbers, they are 1 and the row number)

We only need to use half of the numbers (all prime numbers are odd, so two number are the same in the middle) to prove the theory since the other half of the numbers are the same.

For row 11, all we need to do is

$[$$11 \choose 2$$\div 11] +[$$11\choose 3$$\div 11]+[$$11\choose 4$$\div 11]+ [$$11\choose 5$$\div 11]$

If one of the numbers is not divisible by 11, one of the answers would not be a whole number, causing the final answer to also not be a whole number. However, if all of the numbers are multiples of 11 then the final answer would be a whole number.

The above equation would turn into:

$55 \over 11$ $+$ $ 165 \over 11$ $+$ $330 \over 11$ $+$ $462 \over 11$

$=$ $5 + 15 + 30 + 42$

$=$ $92$ which is a whole number, while all the answers are also whole numbers.

Finally, my question to you is:

(a) What is a more efficient way I can prove the theory?

(b) What makes this characteristic true? What is the math behind this?

Best Answer

What you discovered is that

For $p$ a prime number, and $n \in \{1, \dots, p-1 \}$, the binomial coefficient $$\binom{p}{n} = \frac{p!}{n!(p-n)!}$$ is divisible by $p$.

The proof is very simple. The fraction $$\frac{p!}{n!(p-n)!}$$ has a numerator divisible by $p$ ($p!= p \cdot (p-1) \cdots$) and has a denominator not divisible by $p$ (all prime factors of $n!(p-n!)$ are at most $p-1$).

Thus the fraction is divisible by $p$.

This is a very important fact in math, since it is used to prove that $$(a+b)^p \equiv a^p+b^p \pmod{p}$$ for all primes $p$.

Related Question