Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A110471
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A110471 Prime analogue of Baum-Sweet sequence: a(n) = 1 if binary representation of n contains no block of consecutive zeros of exactly prime length; otherwise a(n) = 0. +0
6
1, 1, 1, 1, 0, 1, 1, 1, 0, 0, 1, 1, 0, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 0, 0, 1, 1, 0, 1, 1, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 0, 0, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 1, 1, 0, 0, 1, 1, 0, 1, 1, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0 (list; graph; listen)
OFFSET

0,1

REFERENCES

J.-P. Allouche and J. Shallit, Automatic Sequences, Cambridge Univ. Press, 2003, p. 157.

LINKS

J.-P. Allouche, Finite Automata and Arithmetic.

EXAMPLE

a(4) = 0 because 4 (base 2) = 100, which has 2 (prime) consecutive zeros.

a(8) = 0 because 8 (base 2) = 1000, which has 3 (prime) consecutive zeros.

a(9) = 0 because 9 (base 2) = 1001, which has 2 (prime) consecutive zeros.

a(16) = 1 because 16 (base 2) = 10000, which has 4 (composite) consecutive zeros, even though there are sub-blocks of zeros of lengths 2 and 3.

a(32) = 0 because 32 (base 2) = 100000, which has 5 (prime) consecutive zeros.

MATHEMATICA

f[n_] := If[Or @@ (First[ # ] == 0 && PrimeQ[Length[ # ]] &) /@ Split[IntegerDigits[n, 2]], 0, 1]; Table[f[n], {n, 0, 120}] (*Chandler*)

CROSSREFS

Cf. A037011, A086747, A110472, A110474.

Sequence in context: A115954 A115526 A054524 this_sequence A103994 A051731 A135839

Adjacent sequences: A110468 A110469 A110470 this_sequence A110472 A110473 A110474

KEYWORD

base,easy,nonn

AUTHOR

Jonathan Vos Post (jvospost3(AT)gmail.com), Sep 07 2005

EXTENSIONS

Extended by Ray Chandler (rayjchandler(AT)sbcglobal.net), Sep 16 2005

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified November 25 20:09 EST 2009. Contains 167514 sequences.


AT&T Labs Research