Number theoryDifficulty 5.0AIME, harderProve itIreland
You are given a positive integer. Prove that you can append digits to the given number so that the resulting number is a perfect square.
For example, the given integer 1234 can be extended to 12341169=35132.
Solutions — 2
Solution 1
Let p be the given number and suppose we extend it by n digits. The value of n is still to be determined. The smallest such extension is p⋅10n and the largest is (p+1)⋅10n−1. It is possible to complete the number p to a perfect square by appending n digits if there exists an integer m such that p⋅10n≤m2<(p+1)⋅10n, i.e. p⋅102n≤m<p+1⋅102n. Because p+1−p>0, for n large enough we have (p+1−p)⋅102n>1. Hence, there is an integer between p⋅102n and p+1⋅102n.
Solution 2
Let the given number p have less than k digits, i.e. p<10k. Let N be the largest integer for which N2≤p⋅10k+1, i.e. N2≤p⋅10k+1<(N+1)2. Combining N2≤p⋅10k+1 with p<10k we get N2<102k+1, and so N<10⋅10k. Using 1+210<10, which follows from 40=(210)2<92, we obtain 2N+1<210⋅10k+1<(1+210)10k<10k+1. We then get 0<p⋅10k+1<(N+1)2=N2+(2N+1)<p⋅10k+1+10k+1=(p+1)⋅10k+1. This means that the number (N+1)2 is obtained from the number p by appending k+1 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 and solution reproduced as published; topic and difficulty added by this site.