NumberthonNumberthon

SolveFire POTD

Bronze
number_theory
5/04/2026
Problems sourced from solvefire.net
Problem
Let r(n)r(n) be the integer obtained by reversing the decimal digits of nn, so that r(120)=21r(120)=21. Find the number of three-digit positive integers nn for which n+r(n)n+r(n) is a perfect square.
Solution ApproachShow

Step-by-step approach

Write n=100a+10b+cn=100a+10b+c so r(n)=100c+10b+ar(n)=100c+10b+a. Then n+r(n)=101(a+c)+20bn+r(n)=101(a+c)+20b. For fixed a+c=sa+c=s (2 to 18) and bb (0–9), check if 101s+20b101s+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.