OFFSET
1,3
COMMENTS
a(1) = 0 because there are no prime numbers of the form 2^1 - 5^k. a(2) = 1 because the only prime of the form 2^2 - 5^k is 2^2 - 5^0 = 3. a(3) = 2 because there are two primes of the form 2^3 - 5^k: 2^3 - 3^0 = 7 and 2^3 - 5^1 = 3.
LINKS
G. C. Greubel, Table of n, a(n) for n = 1..1000
MATHEMATICA
Table[Length[Select[Range[0, Floor[Log[5, 2^n]]], PrimeQ[2^n-5^# ]&]], {n, 1, 150}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Alexander Adamchuk, Nov 17 2006
STATUS
approved