Olympiad Maths Prep

Track / Stage 7 / 29 of 300 #1429 of 2000

Problem 1429

National olympiad second round; IMO P1/P4
Number theory Difficulty 7.0 Prove it

Prove that for every natural number kk there exists an infinite set of such natural numbers tt, that the decimal notation of tt does not contain zeroes and the sums of the digits of the numbers tt and ktkt are equal.

This one wants a proof. Work it on paper, read the official solution, then mark yourself honestly — the ladder only means something if the record is true.

Official solution

1. Denote by s(N) s(N) the sum of the digits of N N . It is a well-known result that s(N)N(mod9) s(N) \equiv N \pmod{9} . This means that the sum of the digits of a number N N is congruent to N N modulo 9.
2. We need to prove that for every natural number k k , there exists an infinite set of natural numbers t t such that the decimal notation of t t does not contain zeroes and the sums of the digits of the numbers t t and kt kt are equal. In other words, we need s(t)=s(kt) s(t) = s(kt) .
3. Using the property s(N)N(mod9) s(N) \equiv N \pmod{9} , we have:
s(t)t(mod9)ands(kt)kt(mod9) s(t) \equiv t \pmod{9} \quad \text{and} \quad s(kt) \equiv kt \pmod{9}
Therefore, we need:
tkt(mod9) t \equiv kt \pmod{9}
4. This simplifies to:
t(1k)0(mod9) t(1 - k) \equiv 0 \pmod{9}
This means that t t must be a multiple of 9gcd(k,9) \frac{9}{\gcd(k, 9)} .
5. We consider two cases based on the value of gcd(k,9) \gcd(k, 9) :
- Case 1: gcd(k,9)=1 \gcd(k, 9) = 1 . In this case, 9gcd(k,9)=9 \frac{9}{\gcd(k, 9)} = 9 . Therefore, t t must be a multiple of 9. We can choose t t to be any number of the form 9m 9m where m m is a natural number and the decimal notation of t t does not contain zeroes. For example, t=9,18,27, t = 9, 18, 27, \ldots .
- Case 2: gcd(k,9)>1 \gcd(k, 9) > 1 . The greatest common divisor can be either 3 or 9.
- If gcd(k,9)=3 \gcd(k, 9) = 3 , then 9gcd(k,9)=3 \frac{9}{\gcd(k, 9)} = 3 . Therefore, t t must be a multiple of 3. We can choose t t to be any number of the form 3m 3m where m m is a natural number and the decimal notation of t t does not contain zeroes. For example, t=3,6,9,12,15, t = 3, 6, 9, 12, 15, \ldots .
- If gcd(k,9)=9 \gcd(k, 9) = 9 , then 9gcd(k,9)=1 \frac{9}{\gcd(k, 9)} = 1 . This is trivial, and every t t works. We can choose t t to be any natural number whose decimal notation does not contain zeroes.

6. In all cases, we can find an infinite set of natural numbers t t such that the decimal notation of t t does not contain zeroes and s(t)=s(kt) s(t) = s(kt) .

\blacksquare

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