Let r(n) be the integer obtained by reversing the decimal digits of n, so that r(120)=21. Find the number of three-digit positive integers n for which n+r(n) is a perfect square.
Solution ApproachShowHide
Step-by-step approach
Write n=100a+10b+c so r(n)=100c+10b+a. Then n+r(n)=101(a+c)+20b. For fixed a+c=s (2 to 18) and b (0–9), check if 101s+20b is a perfect square. Count valid triples.
Ready for more competition problems?
Practice the full SolveFire course and compete in ranked math battles — free to play.