Olympiad Maths Prep

Track / Stage 5 / 279 of 400 #879 of 2000

Problem 879

AIME late
Number theory Difficulty 5.7 Prove it

396. Does there exist a natural number nn with the following property: the sum of the digits of the number nn (in decimal notation) is 1000, and the sum of the digits of the number n2n^{2} is 100021000^{2}?

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

396. Answer: it exists. Let the nkn-k-digit number, written using mm ones and some number of zeros, be such that S(n2)=m2S\left(n^{2}\right)=m^{2}. Then for the number n1=10k+1n+1n_{1}=10^{k+1} n+1, where kk is the number of digits in the representation of n,S(n1)=m+1,S(n12)=(m+1)n, \quad S\left(n_{1}\right)=m+1, S\left(n_{1}^{2}\right)=(m+1).

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