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!)
A214120 Number of Proth primes < 2^n. 1
0, 1, 2, 3, 4, 5, 7, 9, 12, 17, 21, 27, 33, 50, 62, 84, 110, 148, 182, 253, 327, 467, 610, 855, 1097, 1548, 1999, 2849, 3648, 5231, 6761, 9781, 12631, 18293, 23770, 34407, 44704, 64911, 84734, 122742, 160055, 233124, 303882, 442949, 578588, 843890, 1103500 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,3
LINKS
Chris Caldwell, The Top 20 Proth Primes
Chris Caldwell, The Prime Glossary, Proth prime
EXAMPLE
a(5) = 4 since first 4 Proth primes are 3, 5, 13, 17 all < 2^5.
MATHEMATICA
lst2 = {}; r = 47; lst1 = Union[Flatten@Table[Select[1 + 2^k*Range[1, 2^Min[k, r - k], 2], # < 2^r && PrimeQ[#] &], {k, r}]]; Do[AppendTo[lst2, Length@Select[lst1, # < 2^n &]], {n, r}]; lst2
PROG
(PARI) a(n)=my(c=0); for(m=1, n-1, k=1; until(k>2^m, p=k*2^m+1; if(p>2^n, break); if(isprime(p), c++); k=k+2)); c; \\ Arkadiusz Wesolowski, Mar 14 2014
CROSSREFS
Cf. A080076.
Sequence in context: A290137 A336351 A241818 * A240840 A117599 A117602
KEYWORD
nonn
AUTHOR
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 11:16 EDT 2024. Contains 371967 sequences. (Running on oeis4.)