login
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