login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A081592
A self generating sequence: "there are n a(n)'s in the sequence". Start with 1,2 and use the rule : "a(n)=k implies there are n following k's (k is 1 or 2)".
2
1, 2, 1, 2, 2, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2
OFFSET
1,2
COMMENTS
Lengths of runs of consecutive 1's or 2's are : 1,1,2,3,9,21,117,588 ...
EXAMPLE
Sequence begins : 1,2 . Since a(1)=1 there is only one following "1", gives 1,2,1. Since a(2)=2 there are 2 following "2's", gives 1,2,1,2,2. Since a(3)=1 there are 3 following "1's" 1,2,1,2,2,1,1,1 etc.
CROSSREFS
Sequence in context: A135689 A029438 A304274 * A255934 A358401 A085028
KEYWORD
nonn
AUTHOR
Benoit Cloitre, Apr 21 2003
STATUS
approved