login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A109227 Binary strings that have 1's where primes occur, 0's elsewhere and every term ends with the n-th prime index. 2
1, 11, 1101, 110101, 1101010001, 110101000101, 1101010001010001, 110101000101000101, 1101010001010001010001, 1101010001010001010001000001, 110101000101000101000100000101, 110101000101000101000100000101000001 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
a(2) and a(121) are primes. Are there any more?
LINKS
EXAMPLE
a(4) = 110101 because the string '00110101' has 1's at the prime indices 2,3,5,7 and the first two zeros are dropped.
MATHEMATICA
a[n_] := FromDigits[Boole @ PrimeQ[Range[Prime[n]]]]; Array[a, 12] (* Amiram Eldar, Aug 18 2020 *)
CROSSREFS
Cf. A109228.
Sequence in context: A348269 A153435 A266787 * A133342 A110574 A280042
KEYWORD
base,easy,nonn
AUTHOR
Jason Earls, Jun 23 2005
STATUS
approved

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 25 16:45 EDT 2024. Contains 371989 sequences. (Running on oeis4.)