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”).

A121845
A self-describing sequence: the length of each run of consecutive integers is given by the sequence itself. Always start a new run with the smallest unused integer so far.
0
1, 3, 4, 5, 2, 3, 4, 5, 7, 8, 9, 10, 11, 6, 7, 12, 13, 14, 16, 17, 18, 19, 15, 16, 17, 18, 19, 21, 22, 23, 24, 25, 26, 27, 20, 21, 22, 23, 24, 25, 26, 27, 29, 30, 31, 32, 33, 34, 35, 36, 37, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 38
OFFSET
1,2
EXAMPLE
...
Seq......1--3,4,5--2,3,4,5--7,8,9,10,11--6,7--
Run size:1....3.......4.........5.........2... (the sequence itself)
(the 3rd run starts with "2" which is the smallest unused integer so far. The 5th run starts with "6" for the same reason)
CROSSREFS
Sequence in context: A009389 A091828 A305972 * A239639 A099816 A237273
KEYWORD
base,easy,nonn
AUTHOR
Eric Angelini, Aug 29 2006
STATUS
approved