Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A109925
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A109925 Number of primes of the form n - 2^k. +0
6
0, 0, 1, 2, 1, 2, 2, 1, 2, 1, 2, 1, 2, 1, 3, 0, 1, 2, 3, 1, 4, 0, 2, 1, 2, 0, 3, 0, 1, 1, 2, 1, 3, 1, 3, 0, 2, 1, 4, 0, 1, 1, 2, 1, 5, 0, 2, 1, 3, 0, 3, 0, 1, 1, 3, 0, 2, 0, 1, 1, 3, 1, 4, 0, 1, 1, 2, 1, 5, 0, 2, 1, 2, 1, 6, 0, 3, 0, 2, 1, 3, 0, 3, 1, 2, 0, 4, 0, 1, 1, 3, 0, 3, 0, 2, 0, 1, 1, 3, 0, 2, 1, 2, 1, 6 (list; graph; listen)
OFFSET

1,4

COMMENT

Erdos conjectures that the numbers in A039669 are the only n for which n-2^r is prime for all 2^r<n. - T. D. Noe (noe(AT)sspectra.com) and Robert G. Wilson v (rgwv(AT)rgwv.com), Jul 19 2005

FORMULA

a(A118954(n))=0, a(A118955(n))>0; A118952(n)<=a(n); A078687(n)=a(A000040(n)). - Reinhard Zumkeller (reinhard.zumkeller(AT)gmail.com), May 07 2006

EXAMPLE

a(21) = 4, 21-2 =19, 21-4 = 17, 21-8 = 13, 21-16 = 5, four primes.

MATHEMATICA

Table[cnt=0; r=1; While[r<n, If[PrimeQ[n-r], cnt++ ]; r=2r]; cnt, {n, 150}] (Noe)

f[n_] := Count[ PrimeQ[n - 2^Range[0, Floor[ Log[2, n]]]], True]; Table[ f[n], {n, 105}] (from Robert G. Wilson v (rgwv(AT)rgwv.com), Jul 21 2005)

CROSSREFS

Cf. A109926.

Sequence in context: A049710 A025143 A080634 this_sequence A001468 A014675 A107362

Adjacent sequences: A109922 A109923 A109924 this_sequence A109926 A109927 A109928

KEYWORD

easy,nonn

AUTHOR

Amarnath Murthy (amarnath_murthy(AT)yahoo.com), Jul 17 2005

EXTENSIONS

Corrected and extended by T. D. Noe (noe(AT)sspectra.com) and Robert G. Wilson v (rgwv(AT)rgwv.com), Jul 19 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