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!)
A175148 a(n) = number of primes p, p <= 2^n, where 2^n + p is composite. 1
0, 1, 1, 2, 3, 8, 13, 22, 43, 79, 140, 258, 480, 877, 1646, 3083, 5788, 10940, 20623, 39191, 74441, 141826, 270992, 518323, 993869, 1910174, 3674150, 7078905, 13654626, 26375091, 51007193, 98748888, 191381911 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,4
COMMENTS
Terms through a(18) calculated by M. F. Hasler.
LINKS
FORMULA
a(n) = A007053(n) - A175147(n).
PROG
(Python)
from sympy import isprime, primerange
def a(n):
t = 2**n
return sum(1 for p in primerange(2, t+1) if not isprime(t + p))
print([a(n) for n in range(20)]) # Michael S. Branicky, Feb 20 2023
CROSSREFS
Sequence in context: A102315 A142880 A147329 * A147417 A147357 A004138
KEYWORD
more,nonn
AUTHOR
Leroy Quet, Feb 24 2010
EXTENSIONS
a(19)-a(32) from Ray Chandler, Mar 05 2010
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 17 18:43 EDT 2024. Contains 371765 sequences. (Running on oeis4.)