ICU2Desktop
Technical User
Hi, I'm trying to write a program that begins with a positive integer N and generates a sequence by the rule :
Ni+1 = sum of the squares of the digits of Ni. I need to know how to get all numbers that will return a 1, from 1 thru 99. I figure I can use pow to get the #'s to be squared, but I can not figure out how to square the first digit and then the second digit of a two digit #. Any help getting me started would be greatly appreciated. Thanks