A colleague of mine gave the following question to his C programming class which i found very interesting. It can easily be done in any programming language and immediately i thought wolfram. The question is this:
The number 25 is a unique perfect square, If we increase each digit by one, it becomes 36 which is also a a perfect square! write a program to find another set of numbers with the same qualities.
I am sure this can be easily done in mathematica. Can someone explain how i can do this in mathematica. please note the reason of the question is just an excuse to get me into mathematica programming of which i know nothing.
thanks to all.
1to each digit of a two-digit number, figure out how to find the square root of an integer. Stop, think a little, proceed to 3-digit numbers. Stop, think some more, read the documentation on the definition of simple functions. Now you've dipped your toes into the ocean of Mathematica. - High Performance Mark