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”).

A167504
Number of primes of the form 2^(n-m) 3^m - 1, 0 <= m <= n.
3
1, 2, 3, 2, 4, 0, 5, 3, 4, 0, 3, 1, 7, 0, 2, 2, 6, 0, 3, 3, 2, 0, 5, 1, 3, 0, 3, 3, 3, 0, 9, 3, 3, 0, 4, 3, 3, 0, 3, 4, 6, 0, 6, 2, 1, 0, 7, 1, 5, 0, 6, 2, 3, 0, 3, 3, 3, 0, 6, 1, 6, 0, 5, 4, 5, 0, 2, 4, 5, 0, 6, 2, 7, 0, 3, 1, 8, 0, 5, 2, 6, 0, 5, 0, 6, 0, 2, 5, 6, 0, 5, 4, 1, 0, 5, 1, 4, 0, 4, 0, 6, 0, 3, 4, 3
OFFSET
1,2
LINKS
M. Underwood, 2^a*3^b one away from a prime. Post to primenumbers group, Nov. 19, 2009.
Mark Underwood, Jens Kruse Andersen, 2^a*3^b one away from a prime, digest of 3 messages in primenumbers Yahoo group, Nov 19, 2009.
PROG
(PARI) A167504(n)=sum(b=0, n, ispseudoprime(3^b<<(n-b)-1))
CROSSREFS
Sequence in context: A087038 A299115 A179590 * A286013 A208083 A181515
KEYWORD
nonn
AUTHOR
M. F. Hasler, Nov 19 2009
STATUS
approved