Maths Olympiad Prep

Track / Stage 6 / 243 of 400 #1243 of 1964

Problem 1243

National olympiad, first round
Number theory Difficulty 6.4 Prove it

IX OM - III - Task 1

Prove that the product of three consecutive natural numbers, of which the middle one is a cube of a natural number, is divisible by 504 504 .

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

We need to prove that if aa is a natural number greater than 11, then the number

is divisible by 504=789504 = 7 \cdot 8 \cdot 9. Since the numbers 77, 88, and 99 are pairwise coprime, the task reduces to proving the divisibility of NN by each of these numbers.
a) The number aa can be represented in the form a=7k+ra = 7k + r, where kk is a natural number, and rr is one of the numbers 00, 11, 22, 33, 44, 55, 66. Then a3=73k3+372k2r+37kr2+r3a^3 = 7^3k^3 + 3 \cdot 7^2k^2r + 3 \cdot 7kr^2 + r^3, so when divided by 77, the number a3a^3 gives the same remainder as r3r^3. But r3r^3 is one of the numbers 00, 11, 88, 2727, 6464, 125125, 216216, so the remainder of a3a^3 when divided by 77 is one of the numbers 00, 11, 66, which means that one of the numbers a3a^3, a31a^3 - 1, a3+1a^3 + 1 is divisible by 77.
b) To establish the divisibility of the number NN by 88, it suffices to note that if aa is an even number, then a3a^3 is divisible by 88, and if aa is odd, then a31a^3 - 1 and a3+1a^3 + 1 are two consecutive even numbers, one of which is divisible by 44, and their product by 88.
c) The number aa can be represented in the form a=3l+sa = 3l + s, where ll is a natural number, and ss is one of the numbers 00, 11, 22. Then a3=33l3+33l2s+33ls2+s3a^3 = 3^3l^3 + 3 \cdot 3l^2s + 3 \cdot 3l \cdot s^2 + s^3, from which we see that a3a^3 gives a remainder of s3s^3 when divided by 99, i.e., 00, 11, or 88. Therefore, one of the numbers a3a^3, a31a^3 - 1, or a3+1a^3 + 1 is divisible by 99.
Note 1. It is easy to observe that in the statement of the theorem, we can speak more generally about integers instead of natural numbers.
Note 2. Using simple facts from number theory, the arguments presented above in points a) and c) can be replaced with simpler ones. According to Fermat's Little Theorem (see Seventh Mathematical Olympiad, Warsaw 1957, problem no. 2), if an integer aa is not divisible by 77, then the congruence

holds, from which it follows that

Thus, if aa is any integer, one of the numbers a3a^3, a31a^3 - 1, a3+1a^3 + 1 is divisible by 77.
When it comes to divisibility by 99, which is not a prime number, a more general theorem than Fermat's must be applied, namely Euler's Theorem (the famous Swiss mathematician, 1707-1783). Let mm be a natural number, and let φ(m)\varphi(m) denote the number of natural numbers not greater than mm and coprime with mm. For example, φ(1)=φ(2)=1\varphi(1) = \varphi(2) = 1, φ(3)=φ(4)=2\varphi(3) = \varphi(4) = 2, φ(5)=4\varphi(5) = 4, φ(6)=2\varphi(6) = 2, φ(7)=6\varphi(7) = 6, φ(8)=4\varphi(8) = 4, φ(9)=6\varphi(9) = 6, etc.
Euler's Theorem states: If the integers aa and m>1m > 1 are coprime, then

For example, if m=9m = 9, we get the theorem: if the integer aa is not divisible by 33, then

from which - as above - it follows that for any integer aa, one of the numbers a3a^3, a31a^3 - 1, a3+1a^3 + 1 is divisible by 99.
A proof of Euler's Theorem can be conducted as follows. Let r1,r2,,rφr_1, r_2, \ldots, r_\varphi, where φ=φ(m)\varphi = \varphi(m), be the increasing sequence of all natural numbers not greater than mm and coprime with mm. Then each of the numbers ar1,ar2,,arφar_1, ar_2, \ldots, ar_\varphi is also coprime with mm; let ρ1,ρ2,,ρφ\rho_1, \rho_2, \ldots, \rho_\varphi denote the remainders of these numbers when divided by mm, so

Each of the numbers ρi\rho_i is coprime with mm, because according to (1) αriφi\alpha r_i - \varphi_i is divisible by mm, and αri\alpha r_i is coprime with mm. Moreover, the numbers ρi\rho_i are all different, because from the equality ρi=ρk\rho_i = \rho_k it would follow that αriαrk(modm)\alpha r_i \equiv \alpha r_k \pmod m, and thus rirk(modm)r_i \equiv r_k \pmod m, i.e., rirkr_i \equiv r_k, contrary to the definition of the numbers rir_i. Therefore, the numbers ρ1,ρ2,,ρφ\rho_1, \rho_2, \ldots, \rho_\varphi differ from the numbers r1,r2,,rφr_1, r_2, \ldots, r_\varphi at most in order, and the equality

holds.
Multiplying the congruences (1) side by side, we get

Since each of the numbers rir_i is coprime with mm, the same applies to the product of these numbers, so from (2) and (3) it follows that

which was to be proved.
Note that if mm is a prime number, then φ(m)=m1\varphi(m) = m - 1; in this case, Euler's Theorem gives Fermat's Little Theorem.

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