OFFSET
1,2
LINKS
Onno M. Cain, Sela T. Enin, Inventory Loops (i.e. Counting Sequences) have Pre-period 2 max S_1 + 60, arXiv:2004.00209 [math.NT], 2020.
FORMULA
From Seiichi Manyama, Aug 18 2020: (Start)
a(1) = 1 and a(n) = A244112(a(n-1)) for n > 1.
a(n) = 14233221 for n >= 13. (End)
EXAMPLE
For example, the term after 131221 is obtained by saying "one 3, two 2's, three 1's", which gives 13-22-31, i.e. 132231.
MATHEMATICA
Nest[Append[#, FromDigits@ Flatten@ Map[Reverse, Tally@ ReverseSort@ IntegerDigits@ #[[-1]] ] ] &, {1}, 24] (* Michael De Vlieger, Jul 15 2020 *)
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
STATUS
approved