Kvant

Rough automatic draft, low quality: expect mistakes and awkward wording. It will be replaced by a better translation. Original →

17

ARITHMETIC
BINOMIAL
ODDS

D. B. Fuks, M. B. Fuks

(1+x)2=1+2x+x2(1+x)^2=1+2x+x^2
(1+x)3=1+3x+3x2+x3(1+x)^3=1+3x+3x^2+x^3

Any schoolchild knows these formulas. Numbers 1, 2, 1; 1, 3, 3, 1, as well as numbers obtained in a similar way when raised to the power of 4, 5, …, are called biomial coefficients. This article talks about the various properties of biomial coefficients. The first paragraph sets out the “general theory”: most of the theorems proved here were also included in the school curriculum. In the second paragraph we will show how you can very easily find the remainder when dividing any of the biomial coefficients by any prime number. Some of the statements in this paragraph are formulated as hypotheses. Perhaps readers «Kvant» will try to prove them.

18

§ 1. Definition and simplest properties of binomial coefficients

If the binomial (binomial) 1+x1+x is weighed by some natural power nn, then, obviously, the result is a polynomial of the nn degree (i.e., the highest degree to which xx appears in this polynomial will be equal to nn). For example:

(1+x)0=1,(1+x)^0 = 1,
(1+x)1=1+x,(1+x)^1 = 1+x,
(1+x)2=1+2x+x2,(1+x)^2 = 1+2x+x^2,
(1+x)3=1+3x+3x2+x3,(1+x)^3 = 1+3x+3x^2+x^3,
(1+x)4=1+4x+6x2+4x3+x4,(1+x)^4 = 1+4x+6x^2+4x^3+x^4,
(1+x)5=1+5x+10x2+10x3+(1+x)^5 = 1+5x+10x^2+10x^3+
+5x4+x5,+5x^4+x^5,

The coefficients of these polynomials are called binomial. There is special notation for them: the coefficient of xmx^m in (1+x)n(1+x)^n is denoted by CnmC_n^m. For example, C21=2C_2^1=2, C42=6C_4^2=6, C53=10C_5^3=10. In old algebra textbooks, the number CnmC_n^m is called “the number of combinations of nn through mm”. There are reasons for this, but we don’t

From here it is easy to obtain that

(a+x)n=Cn0an+Cn1an−1x…(a+x)^n = C_n^0a^n + C_n^1a^{n-1}x\ldots
…+Cnnxn\ldots + C_n^nx^n

(it is enough to apply formula (1) to the calculation of (1+x)an(1+x)a^n and multiply both sides of the resulting equality by ana^n). The last formula is called Newton’s binomial. Hence the name of the coefficients - binomial.

It is clear that CnmC_n^m are non-negative integers and that Cnm=0C_n^m=0 for m>nm>n (the polynomial (1+x)n(1+x)^n has degree nn, and xmx^m with m>nm>n is not included in it). It is easy to verify further that Cn0=Cn1=1C_n^0=C_n^1=1. Other binomial coefficients CnmC_n^m, where 0<m<n0<m<n, can be found by raising 1+x1+x to various powers. Their values ​​for n⩽10n\leqslant10 are given in the table.

We see that binomial coefficients are quite rapidly growing numbers. An observant reader will notice a number of patterns in the arrangement of these numbers. As a rule, such patterns are easily derived from the definition of binomial coefficients. We will prove here only the main ones. Let’s start with the most important of all - the so-called Pascal identity.

We will highlight in them: for us this is not important. So,

(1+x)n=Cn0+Cn1x+Cn2x2+…(1+x)^n = C_n^0+C_n^1x+C_n^2x^2+\ldots
…+Cnnxn.\ldots +C_n^nx^n.

(1)

Theorem 1 (Pascal’s identity).

Cnm=Cn−1m+Cn−1m−1C_n^m = C_{n-1}^m+C_{n-1}^{m-1}

(2)

for any natural n,mn, m.

19

Proof. By definition, CnmC_n^m is the coefficient of xmx^m in the polynomial (1+x)n(1+x)^n. In order to find this coefficient, you need to multiply nn polynomials equal to 1+x1+x. Multiplying n−1n-1 of them, we obtain the polynomial 1+Cn−11x+Cn−12x2+⋯+xn−11+C_{n-1}^1x + C_{n-1}^2x^2 + \dots + x^{n-1}. Performing the last multiplication, we get

(1+x)(1+Cn−11x+Cn−12x2+⋯+xn−1)=1+Cn−11x+Cn−12x2+⋯+xn−1+x+Cn−11x2+Cn−12x3+⋯+xn=1+(Cn−11+1)x+(Cn−12+Cn−11)x2+⋯+xn.(1+x)(1+C_{n-1}^1x + C_{n-1}^2x^2 + \dots + x^{n-1}) = 1 + C_{n-1}^1x + C_{n-1}^2x^2 + \dots + x^{n-1} + x + C_{n-1}^1x^2 + C_{n-1}^2x^3 + \dots + x^n = 1 + (C_{n-1}^1 + 1)x + (C_{n-1}^2 + C_{n-1}^1)x^2 + \dots + x^n.

In the resulting expression, the coefficient of xmx^m is equal to Cn−1m+Cn−1m−1C_{n-1}^m + C_{n-1}^{m-1}. Thus,

Cnm=Cn−1m+Cn−1m−1.C_n^m = C_{n-1}^m + C_{n-1}^{m-1}.

Pascal’s identity is convenient to use to calculate biomial coefficients. For example, if we want to add one more line (eleventh) to our table, then we just need to add in pairs the numbers next to each other in the previous (tenth) line:

C110=1C111=C101+C100=11C112=C102+C101=55C113=C103+C102=165C114=C104+C103=330C115=C105+C104=462C_{11}^0 = 1 \quad C_{11}^1 = C_{10}^1 + C_{10}^0 = 11 \quad C_{11}^2 = C_{10}^2 + C_{10}^1 = 55 \quad C_{11}^3 = C_{10}^3 + C_{10}^2 = 165 \quad C_{11}^4 = C_{10}^4 + C_{10}^3 = 330 \quad C_{11}^5 = C_{10}^5 + C_{10}^4 = 462

This shows that it is convenient to write biomial coefficients in the form of a triangular table (see

3*

20

Thus, formula (3) holds for n=1n=1, and from its validity for n−1n-1 it follows that it is true for nn. This proves formula (3) for any nn.

We recommend that the reader, having become acquainted with formula (3) for the first time, deduce from it the already known equalities Cn0=Cnn=1C_n^0 = C_n^n = 1 and Cnm=0C_n^m = 0 for m>nm>n.

Formula (3) is interesting because the fraction on its right side is equal to a whole number, that is, all the numbers in its denominator will cancel with the numbers in the numerator.

The following theorem will be used further.

Theorem 3. If the numbers nn and mm are coprime (that is, the greatest common divisor of the numbers nn and mm is 1), then CnmC_n^m is divisible by nn.

Proof:

Cnm=n(n−1)…(n−m+1)1⋅2…m=nm⋅(n−1)…(n−m+1)1⋅2…(m−1)=nm⋅Cn−1mC_n^m = \frac{n(n-1)\ldots(n-m+1)}{1\cdot2\ldots m} = \frac{n}{m} \cdot \frac{(n-1)\ldots(n-m+1)}{1\cdot2\ldots(m-1)} = \frac{n}{m} \cdot C_{n-1}^m

Thus,

mCnm=nCn−1mmC_n^m = nC_{n-1}^m

i.e. the number mCnmmC_n^m is divisible by nn. But since mm and nn are coprime, i.e. mm is not divisible by any prime divisor of nn, then CnmC_n^m is divisible by nn.

For example, C94=126C_9^4 = 126 is divisible by 9, C103=120C_{10}^3 = 120 is divisible by 10.

Let us indicate a few more properties of biomial coefficients:

  1. Cnm=Cn−1mC_n^m = C_{n-1}^m
  2. Cnm+Cn+1m+…+Cm+km=Cm+k+1mC_n^m + C_{n+1}^m + \ldots + C_{m+k}^m = C_{m+k+1}^m
  3. Cn0+Cn1+…+Cnn=2nC_n^0 + C_n^1 + \ldots + C_n^n = 2^n
  4. Cn0+Cn2+Cn4+…=Cn1+Cn3+Cn5+…C_n^0 + C_n^2 + C_n^4 + \ldots = C_n^1 + C_n^3 + C_n^5 + \ldots

We leave the proof of these properties to the reader.

§ 2. Residues from dividing biomial coefficients by prime numbers

In this (and in the next) paragraph we will often have to use the form “the numbers aa and bb have equal remainders when divided by pp”. Generally, this form is replaced by the abbreviated notation “a≡ba \equiv b (mod pp)”. In other words, the formula “a≡ba \equiv b (mod pp)” means that a−ba-b is divisible by pp. For example, 4≡14 \equiv 1 (mod 3), 999999≡222222999999 \equiv 222222 (mod 7), etc. The formula “a≡ba \equiv b (mod pp)” is sometimes read like this: “the number aa is comparable to the number bb modulo pp” (however, we will not use expressions either).

Here are two very properties of the symbol ≡:

  1. If a≡ba \equiv b (mod pp) and kk are integers, then ka≡kbka \equiv kb (mod pp).

Indeed, if a−ba-b is divisible by pp, then ka−kb=k(a−b)ka-kb = k(a-b) is also divisible by pp.

  1. If a≡ba \equiv b (mod pp) and b≡cb \equiv c (mod pp), then a≡ca \equiv c (mod pp).

Indeed, if a−ba-b is divisible by pp and b−cb-c is divisible by pp, then a−c=(a−b)+(b−c)a-c = (a-b)+(b-c) is also divisible by pp.

Let us recall that any natural number aa can be divided by a natural number pp “with a remainder”, i.e. aa can be uniquely written in the form a=bp+ca=bp+c, where bb, cc are integers such that 0≤c<p0 \leq c < p.

The main goal of this section is to prove the following statement.

Theorem 4. Let pp be a prime number, mm and nn be natural numbers. Let, further, kk and ll be the partials of dividing the numbers mm and nn by pp, and ss and tt be the remainders (i.e. m=kp+sm=kp+s, n=lp+tn=lp+t, where kk, ll, ss, tt are integers and 0≤s<p0 \leq s < p, 0≤t<p0 \leq t < p). Then

Cn∗=Cl∗⋅Cs∗(modp).C_n^* = C_l^* \cdot C_s^* \pmod p.

As we will see below, this theorem allows us to find remainders from dividing biomial coefficients by prime numbers, almost without performing any calculations.

23

in such a way that C11933≡0C_{119}^{33} \equiv 0 (mod 3), i.e. C11933C_{119}^{33} is divisible by 3 without remainder.

Note that if we apply our Theorem 4 to CnmC_n^m, where n≥mn \geq m, then by writing m=kp+sm = kp + s, n=lp+tn = lp + t we will of course have l≥kl \geq k; however, it is impossible to predict which of the numbers ss, tt will be larger. If there is s>ts > t, then according to our theorem Cnm≡ClkCst=0C_n^m \equiv C_l^k C_s^t = 0 (mod pp), i.e. CnmC_n^m is divisible by pp. As we have seen, to determine the remainder when dividing the number CnmC_n^m by pp one usually comes to use Theorem 4 several times; and every time a phenomenon similar to that described above can occur, and whenever this happens, this means that a similar number CnmC_n^m is divisible by pp. Similarly, we got that C11933C_{119}^{33} is divisible by 3.

We see that the larger nn, the more likely the number CnmC_n^m is divisible by pp. It is easy to prove the following, more precise statement: the total number of numbers CnmC_n^m with 0≤n≤pr0 \leq n \leq p^r, 0≤m≤n0 \leq m \leq n there are pr(pr+1)2\frac{p^r (p^r + 1)}{2}, of which is not divisible by pp exactly pr(p+1)r2r\frac{p^r (p + 1)^r}{2^r} (here pp is simple, rr natural; the proof is based only on Theorem 3, we leave it to the reader). It is emphasized that for large rr the number pr(p+1)r2r\frac{p^r (p + 1)^r}{2^r} is many times smaller than the number pr(pr+1)2\frac{p^r (p^r + 1)}{2}.

So, for example, of the numbers CnmC_n^m with 0≤n≤350 \leq n \leq 3^5, 0≤m≤n0 \leq m \leq n approximately 26.2% are not divisible by 3; if 0≤n≤3100 \leq n \leq 3^{10}, then approximately 3.6%, and if 0≤n≤3150 \leq n \leq 3^{15}, then approximately 0.45%.

In conclusion, let’s say a few words about the weight of the visual interpretation of Theorem 4, which can be obtained by considering the so-called “Pascal’s triangle according to the pp model”. This is the name of the triangular table that will be obtained from Pascal’s triangle if each number in it is replaced by its remainder when divided by pp. We do not prove any theorems about this triangle, but we invite the reader to look at two pictures (on the cover and on page 22) that depict Pascal’s triangles modulo 2 and 3. Think about how these triangles are arranged in the part that is not visible on figure. Try to formulate Theorem 4 in such a way that it becomes a theorem about the structure of Pascal’s triangle modulo pp.

§ 3. A little about remainders from dividing biomial coefficients by powers of prime numbers

We do not consider in any general way the question of remainders from dividing biomial coefficients into composite numbers. (However, the reader can think about this for himself; what, for example, is the remainder of dividing the number C11933C_{119}^{33} by 4: one or trem?) We will limit ourselves to talking about one amazing phenomenon that has not been fully explained by us.

Let’s start with some calculations. Using the formula for biomial coefficients (see § 1, formula (2)), we obtain

C21=2,C_2^1 = 2,
C42=6,C_4^2 = 6,
C84=70,C_8^4 = 70,
C168=12870,C_{16}^8 = 12870,
C3216=601080390.C_{32}^16 = 601080390.

(Everyone knows, of course, that 1, 2, 4, 8, 16, 32, … are successive powers of two.) The resulting numbers themselves should not be used in any special way; their successive differences, however, reveal striking properties. Let’s look at them:

6−2=4=22,6 - 2 = 4 = 2^2,
70−6=64=26,70 - 6 = 64 = 2^6,
12870−70=12800=29⋅25,12870 - 70 = 12800 = 2^9 \cdot 25,

24


running_head:
folio:

601 080 390−12 870=601 067 520=212⋅146 745.601\ 080\ 390 - 12\ 870 = 601\ 067\ 520 = 2^{12} \cdot 146\ 745.

We see that these differences are divided into high powers of two - so large that this phenomenon does not cause harm. It is possible to prove a theorem that explains it at least partially.

Theorem 5. If n>1n > 1, then the number
αn=C2n+12n−C2n2n−1\alpha_n = C_{2n+1}^{2n} - C_{2n}^{2n-1}
is divisible by 22n+22^{2n+2}.

Sweeping.
1°. The assumption that n>1n > 1 is significant since α1\alpha_1 is equal to 4 and is not divisible by 22n+2=24=162^{2n+2} = 2^4 = 16.
2°. One might expect that αn\alpha_n for n>1n > 1 is even divisible by 23n2^{3n}: this is true for n=2,3,4n = 2, 3, 4. But we don’t know how to prove this.

Proof. Let’s start with the general observation that if the number rr is odd, then C2nrC_{2n}^{r} is divisible by 2n2^n. In fact, since rr is odd, and 2n2^n has no prime divisors other than two, then the numbers rr and 2n2^n are coprime and the statement we need follows from Theorem 3.

Let us put the theory
P(x)=(1+x)2n+1−(1−x2)2n.P(x) = (1+x)^{2n+1} - (1-x^2)^{2n}.

The polynomial P(x)P(x) contains x2nx^{2n} with coefficient C2n+12n−C2n2n−1=αnC_{2n+1}^{2n} - C_{2n}^{2n-1} = \alpha_n (here we use the fact that n>1n > 1: when (1−x2)=1+(−x2)(1-x^2) = 1 + (-x^2) appears to the power 2n2^n, we obtain with coefficient C2n2n−1C_{2n}^{2n-1} not x2nx^{2n}, but (-x^2)^{2n-1} = (-1)^{2n-1}x^2^n, while the number (−1)2n−1(-1)^{2n-1} is 1 at n>1n > 1 and equal to −1-1 at n=1n = 1.

On the other side,
P(x)=(1+x)2n+1−(1+x)2n=(1+x)2n[(1+x)2n−(1−x)2n].P(x) = (1+x)^{2n+1} - (1+x)^{2n} = (1+x)^{2n}[(1+x)^{2n} - (1-x)^{2n}].

At the same time
(1+x)2n−(1−x)2n=(1+x)2n−(1+(−x))2n=1+C2n1x+C2n2x2+C2n3x3+⋯+x2n−1−C2n1(−x)−C2n2(−x)2−C2n3(−x)3−⋯−(−x)2n=(1+x)^{2n} - (1-x)^{2n} = (1+x)^{2n} - (1+(-x))^{2n} = 1 + C_{2n}^{1}x + C_{2n}^{2}x^2 + C_{2n}^{3}x^3 + \dots + x^{2n} - 1 - C_{2n}^{1}(-x) - C_{2n}^{2}(-x)^2 - C_{2n}^{3}(-x)^3 - \dots - (-x)^{2n} =
(since (−x)k(-x)^k is equal to xkx^k when kk is even and equal to −xk-x^k when kk is odd)
=2(C2n1x+C2n3x3+C2n5x5+⋯+C2n2n−1x2n−1).= 2\left(C_{2n}^{1}x + C_{2n}^{3}x^3 + C_{2n}^{5}x^5 + \dots + C_{2n}^{2n-1}x^{2n-1}\right).

We emphasize that the resulting polynomial xx appears only in odd powers.

We want to know with what coefficient x2nx^{2n} enters P(x)P(x), i.e., into the product
(1+x)2n[(1+x)2n−(1−x)2n]=2(1+C2n1x+C2n2x2+C2n3x3+⋯+x2n)×(C2n1x+C2n3x3+C2n5x5+⋯+C2n2n−1x2n−1).(1+x)^{2n}[(1+x)^{2n} - (1-x)^{2n}] = 2\left(1 + C_{2n}^{1}x + C_{2n}^{2}x^2 + C_{2n}^{3}x^3 + \dots + x^{2n}\right) \times \left(C_{2n}^{1}x + C_{2n}^{3}x^3 + C_{2n}^{5}x^5 + \dots + C_{2n}^{2n-1}x^{2n-1}\right).

Obviously, x2nx^{2n} can be obtained by multiplying x2n−1x^{2n-1} from the first factor and xx from the second, by multiplying x2n−3x^{2n-3} from the second factor and x3x^3 from the second, etc. Thus, the coefficient in P(x)P(x) for x2nx^{2n}, equal, as we know, to αn\alpha_n, is also equal
2(C2n1C2n2n−1+C2n3C2n2n−3+⋯+C2n2n−1C2n1).2\left(C_{2n}^{1}C_{2n}^{2n-1} + C_{2n}^{3}C_{2n}^{2n-3} + \dots + C_{2n}^{2n-1}C_{2n}^{1}\right).

As we know, each of the numbers C2n1,C2n3,…,C2n2n−1C_{2n}^{1}, C_{2n}^{3}, \dots, C_{2n}^{2n-1} is divisible by 2n2^n. Therefore, each term in brackets is divided by 2n⋅2n=22n2^n \cdot 2^n = 2^{2n}; in addition, the two comes before the entire expression,

25

and besides, each term in brackets occurs twice. Thus, αn\alpha_n is divisible by 22n+22^{2n+2}, as required.

So, the strange phenomenon of divisibility of numbers αn\alpha_n into high powers of two is to some extent explained. But nothing similar is observed if you replace the two with a three, five, seven. Really,

C93−C31=84−3=81=34;C_9^3 - C_3^1 = 84 - 3 = 81 = 3^4;

C279−C93=4686825−84=4686741=37⋅2143;C_{27}^9 - C_9^3 = 4686825 - 84 = 4686741 = 3^7 \cdot 2143;

C8127−C279=2306279447501851002720−4686825=2306279447501846315895=310⋅39057044954221855;C_{81}^{27} - C_{27}^9 = 2306279447501851002720 - 4686825 = 2306279447501846315895 = 3^{10} \cdot 39057044954221855;

C255−C51=43130−5=43125=55⋅69;C_{25}^5 - C_5^1 = 43130 - 5 = 43125 = 5^5 \cdot 69;

C497−C71=85900584−7=85900577=75⋅5111.C_{49}^7 - C_7^1 = 85900584 - 7 = 85900577 = 7^5 \cdot 5111.

In short, it seems to be true that for prime pp the number

Cpn+1pn−Cpnpn−1C_{pn+1}^{p^n} - C_{pn}^{p^n-1}

is divisible by a high power of the number pp. But we don’t know how to prove this.

By the way, if pp is not prime, then nothing like this is observed. For example,

C164−C41=1820−4=1816C_{16}^4 - C_4^1 = 1820 - 4 = 1816

not even divisible by 424^2;

C366−C61=1947792−6=1947786C_{36}^6 - C_6^1 = 1947792 - 6 = 1947786

is not even divisible by 626^2.

We believe that one of the readers of «Kvant» can understand this complex issue of biomial coefficient arithmetic.