Maths Olympiad Prep

Library / /18 of 31

Number theory Difficulty 6.6 National Olympiad Prove it Italy

Problem:

We say that three odd numbers a<b<ca < b < c are consecutive if cb=ba=2c - b = b - a = 2. We call "special" those integers that have all digits equal and that can be written as the sum of the squares of three consecutive odd numbers.

a) Determine all special numbers with 4 digits.

b) Do there exist special numbers with 2000 digits?

Solution

Solution:

Suppose that a certain number NN is special and has 4 digits. Then there will exist an odd number dd such that
N=(d2)2+d2+(d+2)2=3d2+8 N = (d-2)^2 + d^2 + (d+2)^2 = 3d^2 + 8
Since dd is odd, NN is also odd and therefore can only be 11111111, 33333333, 55555555, 77777777, 99999999. Now, however, NN cannot be 33333333 or 99999999, since these numbers are divisible by 33 while 3d2+83d^2 + 8 is not; NN also cannot be 11111111 or 77777777, since subtracting 88 from these numbers gives a quantity (which should be 3d23d^2) not divisible by 33. The only possibility is therefore that N=5555N = 5555, from which we easily obtain d=43d = 43. Hence 5555=412+432+4525555 = 41^2 + 43^2 + 45^2 is the only special number with 4 digits.

Let us now come to the case of 2000 digits. The possibilities for the last digit of dd are 1,3,5,7,91, 3, 5, 7, 9; for the last digit of d2d^2 they are 1,5,91, 5, 9; for the last digit of 3d23d^2 they are 3,5,73, 5, 7; finally, for the last digit of N=3d2+8N = 3d^2 + 8 they are 1,3,51, 3, 5.

The case in which NN consists entirely of 33's is discarded since NN would be divisible by 33 while 3d2+83d^2 + 8 is not. The case in which NN is written with all 55's is discarded because N8N-8 would be written as 19981998 digits 55 followed by 4747, and hence would not be divisible by 33 (since the sum of its digits is 19985+4+71998 \cdot 5 + 4 + 7, which is not a multiple of 33).

To examine the remaining case (all digits 11) we set d=2k+1d = 2k + 1 in (1) and obtain 12k(k+1)=N1112k(k+1) = N - 11. Since either kk or k+1k+1 is an even number, the term on the left in this last equality is divisible by 88, while the term on the right is
11111998 times00=100(odd number) \underbrace{11 \ldots 11}_{1998 \text{ times}} 00 = 100 \cdot (\text{odd number})
and hence is not divisible by 88.

This allows us to conclude that there do not exist special numbers with 2000 digits.

Want a route through all this instead of an archive? The track puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.

Source: MathNet, licensed CC-BY-4.0. Statement translated into English from it; metadata (topic, difficulty) added by this project.