Olympiad Maths Prep

Track / Stage 6 / 135 of 400 #1135 of 2000

Problem 1135

National olympiad, first round
Number theory Difficulty 6.2 Prove it

121 \cdot 2 Proof: For any natural number kk, there exist infinitely many natural numbers tt (in decimal notation) that do not contain the digit 0, such that the sum of the digits of tt and ktkt are the same.

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

[Proof] If the number kk is denoted as
k=anan1a0,k=\overline{a_{n} a_{n-1} \cdots a_{0}},

let's assume a01,ta_{0} \geqslant 1, t represents the number composed of mm nines,
t=999m=10m1t=\underset{m \uparrow}{99 \cdots 9}=10^{m}-1

where m>nm>n. Then,
kt=anan1(a01)999(9an)(9an1)(9a1)(10k t=a_{n} a_{n-1} \cdots\left(a_{0}-1\right) 99 \cdots 9\left(9-a_{n}\right)\left(9-a_{n-1}\right) \cdots\left(9-a_{1}\right)(10
a0)kt\left.-a_{0}\right) k t the sum of the digits of ktk t is the same as the sum of the digits of tt, which equals 9 m.

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