login
This site is supported by donations to The OEIS Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
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 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,1

LINKS

Table of n, a(n) for n=1..100.

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

Cf. A000040, A057211.

Sequence in context: A016179 A015024 A016039 * A113047 A214505 A127692

Adjacent sequences:  A138146 A138147 A138148 * A138150 A138151 A138152

KEYWORD

easy,nonn

AUTHOR

Omar E. Pol, Mar 29 2008

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 24 10:48 EDT 2019. Contains 323529 sequences. (Running on oeis4.)