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
KEYWORD
nonn,base,easy
AUTHOR
STATUS
approved