396. Does there exist a natural number n with the following property: the sum of the digits of the number n (in decimal notation) is 1000, and the sum of the digits of the number n2 is 10002?
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 n−k-digit number, written using m ones and some number of zeros, be such that S(n2)=m2. Then for the number n1=10k+1n+1, where k is the number of digits in the representation of n,S(n1)=m+1,S(n12)=(m+1).
Source: NuminaMath-1.5,
licensed Apache-2.0.
Statement and solution reproduced as published; topic, difficulty and ordering added
by this site.