OFFSET
0,3
EXAMPLE
Start from 1. There is just one 1. So the sequence becames 1,1. Then count two 1s.
So we have 1,1,2. Then one 2 and two 1 -> 1,1,2,1,2. Then two 2 and three 1 -> 1,1,2,1,2,2,3. Then one 3, three 2, three 1 -> 1,1,2,1,2,2,3,1,3,3. Then three 3, three 2 and four 1 -> 1,1,2,1,2,2,3,1,3,3,3,3,4. And so on.
MATHEMATICA
s={1}; Do[si={}; Do[j=Max[s]-i+1; AppendTo[si, Count[s, j]], {i, Max[s]}]; s=AppendTo[s, si]//Flatten, {n, 15}]; s (* James C. McMahon, Jun 29 2025 *)
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Paolo P. Lava and Giorgio Balzarotti, Apr 15 2008
EXTENSIONS
a(87)-a(89) inserted by James C. McMahon, Jun 29 2025
STATUS
approved
