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”).

A037220
Summarize the previous term!.
2
0, 10, 1011, 1031, 102113, 10311213, 10411223, 1031221314, 1041222314, 1031321324, 1031223314, 1031223314, 1031223314, 1031223314, 1031223314, 1031223314, 1031223314, 1031223314, 1031223314, 1031223314, 1031223314
OFFSET
0,2
EXAMPLE
a(0) is given as 0;
a(1) is one zero -> 10;
a(2) is one zero and one one -> 1011;
a(3) is one zero and three ones -> 1031;
a(7) and onward is 1031223314.
MATHEMATICA
NestList[ FromDigits@ Flatten@ Map[IntegerDigits@ Reverse@# &, Sort@ Tally@ Flatten@ IntegerDigits@#] &, 0, 20] (* Robert G. Wilson v, Nov 28 2019, adapted from code by Michael De Vlieger in A177359 *)
CROSSREFS
Cf. A005151.
Sequence in context: A274069 A325493 A006937 * A179284 A138484 A022506
KEYWORD
nonn,base,easy
STATUS
approved