The eminent British mathematician had once remarked: Every integer was a friend to Srinivasa Ramanujan.
Well, we are mere mortals, yet we can cultivate some “friendships with some numbers”. Let’s try:
Squaring 12 gives 144. By reversing the digits of 144, we notice that 441 is also a perfect square. Using C, C++, or python, write a program to find all those integers m, such that , verifying this property.
PS: in order to write some simpler version of the algorithm, start playing with small, particular values of N.
Reference: 1001 Problems in Classical Number Theory, Indian Edition, AMS (American Mathematical Society), Jean-Marie De Konick and Armel Mercier.
Amazon India link: