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

A138149
n-th run has length n-th prime, with values 0 and 1 only, starting with 1.
6
1, 1, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1
OFFSET
1,1
EXAMPLE
.n ..... Run ....................... Length
.1 ..... 1,1 ....................... 2
.2 ..... 0,0,0 ..................... 3
.3 ..... 1,1,1,1,1 ................. 5
.4 ..... 0,0,0,0,0,0,0 ............. 7
.5 ..... 1,1,1,1,1,1,1,1,1,1,1 ..... 11
MATHEMATICA
Flatten[Table[{Table[1, {Prime[n]}], Table[0, {Prime[n+1]}]}, {n, 1, 11, 2}]] (* Harvey P. Dale, Jan 25 2013 *)
CROSSREFS
Sequence in context: A016179 A015024 A016039 * A113047 A214505 A127692
KEYWORD
easy,nonn
AUTHOR
Omar E. Pol, Mar 29 2008
STATUS
approved