login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A123674
a(n) = number of primes of the form 2^n - 3^k.
1
0, 1, 2, 2, 4, 2, 3, 2, 4, 2, 2, 2, 3, 3, 1, 2, 4, 0, 3, 4, 4, 3, 3, 3, 0, 1, 1, 0, 2, 1, 1, 1, 3, 2, 3, 2, 2, 0, 1, 2, 2, 3, 0, 0, 4, 4, 3, 2, 5, 4, 4, 0, 0, 0, 1, 1, 4, 5, 2, 4, 3, 3, 0, 1, 1, 2, 5, 0, 1, 1, 4, 3, 1, 0, 1, 1, 3, 2, 3, 0, 2, 4, 2, 1, 2, 2, 3, 0, 7, 2, 4, 4, 2, 2, 2, 3, 5, 0, 3, 1, 1, 1, 3, 3, 2
OFFSET
1,3
COMMENTS
a(1) = 0 because there are no prime numbers of the form 2^1 - 3^k. a(2) = 1 because the only prime of the form 2^2 - 3^k is 2^2 - 3^0 = 3. a(3) = because there are two primes of the form 2^3 - 3^k: 2^3 - 3^0 = 7 and 2^3 - 3^1 = 5.
LINKS
MATHEMATICA
Table[Length[Select[Range[0, Floor[Log[3, 2^n]]], PrimeQ[2^n-3^# ]&]], {n, 1, 200}]
CROSSREFS
Sequence in context: A102640 A332581 A328059 * A363219 A371531 A238745
KEYWORD
nonn
AUTHOR
Alexander Adamchuk, Nov 17 2006
STATUS
approved