OFFSET
1,2
COMMENTS
This sequence is periodic with period 24. - T. D. Noe, Feb 15 2008
LINKS
Index entries for linear recurrences with constant coefficients, signature (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1).
FORMULA
a(n) = a(n-24) for n >= 25. - Wesley Ivan Hurt, Mar 09 2023
MATHEMATICA
Nest[Append[#, Total[IntegerDigits[Last[#]#[[-2]]]]]&, {1, 2}, 80] (* Harvey P. Dale, Apr 21 2011 *)
PadRight[{}, 100, {1, 2, 2, 4, 8, 5, 4, 2, 8, 7, 11, 14, 10, 5, 5, 7, 8, 11, 16, 14, 8, 4, 5, 2}] (* Harvey P. Dale, Jan 18 2015 *)
CROSSREFS
KEYWORD
nonn,easy,nice,base
AUTHOR
STATUS
approved