Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A065832
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A065832 Numbers n such that the first n binary digits found in the base-10 expansion of pi form a prime (when the decimal point is ignored). +0
2
2, 4, 10, 24, 29, 34, 43, 62, 76, 351, 778, 2736, 4992, 7517 (list; graph; listen)
OFFSET

1,1

COMMENT

In other words, take the decimal expansion of pi, drop any digits greater than 1, omit the decimal point and look for prefixes in the resulting string which form base-2 primes.

Numbers n such that A065830(n) is prime.

EXAMPLE

E.g. the first a(3) or 10 binary digits of pi are 1101110001{2} which is prime 881{10}.

MATHEMATICA

p = First[ RealDigits[ Pi, 10, 10^5]]; p = p[[ Select[ Range[10^5], p[[ # ]] == 0 || p[[ # ]] == 1 & ]]]; Do[ If[ PrimeQ[ FromDigits[ Take[p, n], 2]], Print[n]], {n, 1, Length[p] } ]

CROSSREFS

Cf. A065828 up to A065840, A000796, A011545, A011546, A055143, A005042, A060421, A039954, A048796.

Sequence in context: A130967 A148087 A156806 this_sequence A072753 A009884 A032023

Adjacent sequences: A065829 A065830 A065831 this_sequence A065833 A065834 A065835

KEYWORD

nonn,base,hard

AUTHOR

Patrick De Geest (pdg(AT)worldofnumbers.com), Nov 24 2001.

EXTENSIONS

More terms from Robert G. Wilson v (rgwv(AT)rgwv.com), Nov 30 2001

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