login
A079668
Start with 1; at n-th step, write down what is in the sequence so far.
3
1, 1, 1, 3, 1, 4, 1, 0, 2, 1, 3, 1, 0, 6, 1, 1, 2, 2, 3, 1, 4
OFFSET
1,4
COMMENTS
After 1 1 1 3 1, we see "4 1's, 0 2's and 1 3", so next terms are 4 1 0 2 3 1.
MATHEMATICA
s={1}; Do[s=Flatten[{s, {Count[s, #], #}&/@Range[Min[s], Max[s]]}], {20}]; s (* Peter J. C. Moses, Mar 21 2013 *)
CROSSREFS
Cf. A005150. For other versions see A051120, A079585, A079586.
Sequence in context: A245434 A305100 A051512 * A144211 A260510 A125291
KEYWORD
nonn,base
AUTHOR
N. J. A. Sloane Jan 26 2003
STATUS
approved