OFFSET

0,4

COMMENTS

Note that operation n^+ differs from the one in A004185. If a term of the sequence has k digits, then it is followed by terms with >=k digits. The sequence has 7 terms with 1 digit, 13 terms with 2 digits, 30 terms with 3 digits, etc. The corresponding maximal terms are 8, 59, 559, etc.

The sequence is eventually periodic with period of length 144 and the first position of period 237. - Peter J. C. Moses, Feb 09 2014

LINKS

Peter J. C. Moses, Table of n, a(n) for n = 0..952

MATHEMATICA

a[0]:=0; a[1]:=1; a[n_]:=a[n]=FromDigits[Insert[DeleteCases[Sort[#], 0], 0, 1+#-Range[Length[#]]&[Position[#, 0]]]&[IntegerDigits[a[n-1]+a[n-2]]]]; Map[a, Range[0, 99]] (* Peter J. C. Moses, Feb 09 2014 *)

CROSSREFS

KEYWORD

nonn,base

AUTHOR

Vladimir Shevelev, Feb 09 2014

STATUS

approved