OFFSET
1,2
COMMENTS
For n > 1, 3 <= a(n) <= 11 by definition. Also subsequences with repeating terms may be arbitrarily long. What about any other patterns, periods, etc.?
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
Robert Israel, Plot of a(n) for n = 1 .. 5*10^5
MAPLE
s:= proc(n) option remember;
procname(n-1) + a(n-1)
end proc:
s(1):= 0:
a:= proc(n) 2 + max(convert(s(n), base, 10)) end proc:
a(1):= 1:
map(a, [$1..100]); # Robert Israel, May 19 2025
MATHEMATICA
a[1]=i=s=1; Do[i++; b=2+Max[IntegerDigits[s]]; a[i]=b; s+=b, {145}]; Table[a[k], {k, i}]
nxt[{s_, a_}]:=With[{c=Max[IntegerDigits[s]]}, {c+s+2, c+2}]; NestList[nxt, {1, 1}, 100][[;; , 2]] (* Harvey P. Dale, Feb 12 2026 *)
CROSSREFS
KEYWORD
AUTHOR
Zak Seidov, Oct 31 2007
STATUS
approved
