login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A126973
a(n+1) is the smallest integer greater than a(n) such that the sum of the squares of its decimal digits is equal to a(n).
1
1, 10, 13, 23, 1233, 33999999999999999
OFFSET
1,2
EXAMPLE
10 --> 1^2+0^2 = 1+0 =1
13 --> 1^2+3^2 = 1+9 = 10
23 --> 2^2+3^2 = 4+9 =13
1233 --> 1^2+2^2+3^3+3^2 = 1+4+9+9 = 23
33999999999999999 = 3^2*2 + 9^2*15 = 1233
CROSSREFS
Sequence in context: A001273 A111524 A074346 * A220045 A101215 A102249
KEYWORD
nonn,base
AUTHOR
Paolo P. Lava and Giorgio Balzarotti, Mar 20 2007; corrected Mar 23 2007
EXTENSIONS
Next term is greater than 10^419753086419753. [From Charles R Greathouse IV, Nov 13 2010]
STATUS
approved