login
A008461
Take sum of squares of digits of previous term.
3
7, 49, 97, 130, 10, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1
OFFSET
1,1
FORMULA
a(n) = 1 for n > 5. - Charles R Greathouse IV, May 26 2026
MATHEMATICA
NestList[Total[IntegerDigits[#]^2]&, 7, 100] (* Harvey P. Dale, Mar 12 2014 *)
PROG
(PARI) a(n)=if(n>5, 1, [7, 49, 97, 130, 10][n]) \\ Charles R Greathouse IV, May 26 2026
CROSSREFS
Sequence in context: A230655 A357302 A343771 * A043131 A082701 A044145
KEYWORD
nonn,base,easy
STATUS
approved