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

A171086
A "run" means a maximal string of numbers that includes exactly one odd number; this sequence has the property that the sequence of run lengths is the sequence itself and all natural numbers appear exactly once.
2
1, 3, 2, 4, 5, 6, 7, 8, 10, 12, 9, 14, 16, 18, 20, 11, 22, 24, 26, 28, 30, 13, 32, 34, 36, 38, 40, 42, 15, 44, 46, 48, 50, 52, 54, 56, 17, 58, 60, 62, 64, 66, 68, 70, 72, 74, 19, 76, 78, 80, 82, 84, 86, 88, 90, 92, 94, 96, 21, 98, 100, 102, 104, 106, 108, 110
OFFSET
1,2
LINKS
Eric Angelini, Runs
E. Angelini, Runs [Cached copy, with permission]
EXAMPLE
If we insert a carriage return just before each odd number, we get:
1,
3, 2, 4,
5, 6,
7, 8, 10, 12,
9, 14, 16, 18, 20,
11, 22, 24, 26, 28, 30,
13, 32, 34, 36, 38, 40, 42,
15, 44, 46, 48, 50, 52, 54, 56,
17, 58, 60, 62, 64, 66, 68, 70, 72, 74, ,
19, 76, 78,
...
where the first column is the sequence of odd numbers.
CROSSREFS
Sequence in context: A373952 A035044 A359663 * A333324 A333470 A096135
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Sep 07 2010, based on a posting to the Sequence Fans Mailing List by Eric Angelini, Aug 23 2010.
EXTENSIONS
a(50)-a(66) from Lars Blomberg, Nov 23 2013
STATUS
approved