Maths Olympiad Prep

Track / Stage 6 / 115 of 400 #1115 of 1964

Problem 1115

National olympiad, first round
Number theory Difficulty 6.2 Prove it

Let's prove that if nn is any natural number, then

5n+23n1+1 5^{n}+2 \cdot 3^{n-1}+1

is divisible by 8.

This one wants a proof. Work it on paper, then read the official solution and mark yourself. Be honest about it: the record is only any use to you if it is.

Official solution

The following divisibility theorems are known:

If nn is a natural number, then

anbn is divisible by (ab),an+bn is divisible by (a+b) if n is odd.  \begin{gathered} a^{n}-b^{n} \text { is divisible by }(a-b), \\ a^{n}+b^{n} \text { is divisible by }(a+b) \text { if } n \text { is odd. } \end{gathered}

Using these theorems, we can prove the statement of our problem in several ways.

I. Solution: Let the given expression be denoted by F(n)F(n),

a) If nn is even, i.e., n=2kn=2 k (where k=1,2,3k=1,2,3 \ldots), then write F(n)F(n) in the following form

F(2k)=(52k1)+2(32k1+1) F(2 k)=\left(5^{2 k}-1\right)+2\left(3^{2 k-1}+1\right)

The first term on the right-hand side is divisible by (5212)=24=38\left(5^{2}-1^{2}\right)=24=3 \cdot 8 according to (1), and the factor in parentheses in the second term is divisible by 3+1=43+1=4 according to (2), so the second term is divisible by 24=82 \cdot 4=8.

b) If nn is odd, i.e., n=2k+1n=2 k+1 (where k=0,1,2,k=0,1,2, \ldots), then for k=0k=0, F(1)=5+2+1=8F(1)=5+2+1=8, and in all other cases

F(2k+1)=52k+15+232k+6=5(52k1)+6(32k1+1) F(2 k+1)=5^{2 k+1}-5+2 \cdot 3^{2 k}+6=5\left(5^{2 k}-1\right)+6\left(3^{2 k-1}+1\right)

In this case, not only is the first term divisible by 24, but the second term is also divisible by 64=246 \cdot 4=24. Therefore, for odd nn greater than 1, the expression is not only divisible by 8, but also by 24.

II. Solution: a) If n=2kn=2 k (where k=1,2,3,k=1,2,3, \ldots), then F(n)F(n) can also be written as:

F(2k)=552k1+532k1332k1+1==5(52k1+32k1)(9k1) \begin{aligned} & F(2 k)=5 \cdot 5^{2 k-1}+5 \cdot 3^{2 k-1}-3 \cdot 3^{2 k-1}+1= \\ & =5\left(5^{2 k-1}+3^{2 k-1}\right)-\left(9^{k}-1\right) \end{aligned}

The first term on the right-hand side is divisible by 5+3=85+3=8 according to (2), and the second term is divisible by 91=89-1=8 according to (1).

b) If n=2k+1n=2 k+1 (where k=0,1,2,k=0,1,2, \ldots), then

F(2k+1)=52k+1+(31)32k+1=(52k+1+32k+1)(9k1) F(2 k+1)=5^{2 k+1}+(3-1) 3^{2 k}+1=\left(5^{2 k+1}+3^{2 k+1}\right)-\left(9^{k}-1\right)

from which it follows, similarly to the previous case, that F(n)F(n) is divisible by 8.

Note: Many contestants used the polynomial representation of the power of a binomial, but as we have seen, the divisibility theorems (1) and (2) that require fewer prerequisites are sufficient. These can even be omitted if complete induction is used.

III. Solution: For n=1n=1, the statement to be proved is true, because F(1)=8F(1)=8.

Assume that F(k)F(k) is divisible by 8, then it is sufficient to prove that F(k+1)F(k)F(k+1)-F(k) is also divisible by 8.

F(k+1)F(k)=(5k+1+23k+1)(5k+23k1+1)==55k+63k1+15k23k11=4(5k1+3k1) \begin{aligned} & F(k+1)-F(k)=\left(5^{k+1}+2 \cdot 3^{k}+1\right)-\left(5^{k}+2 \cdot 3^{k-1}+1\right)= \\ & =5 \cdot 5^{k}+6 \cdot 3^{k-1}+1-5^{k}-2 \cdot 3^{k-1}-1=4\left(5^{k-1}+3^{k-1}\right) \end{aligned}

The expression in parentheses, being the sum of two odd numbers, is an even number, and thus F(k+1)F(k)F(k+1)-F(k) is divisible by 42=84 \cdot 2=8.

Source: NuminaMath-1.5, licensed Apache-2.0. Statement and solution reproduced as published; topic, difficulty and ordering added by this site.