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

A056802
Numbers n such that 2*9^n + 1 is prime.
1
0, 1, 2, 3, 8, 15, 27, 30, 66, 90, 160, 348, 391, 411, 626, 727, 2740, 3921, 6048, 6891, 8860, 21978, 32411, 41390, 52553, 82948, 95907, 264840, 537363, 543056, 587616, 638931, 673271, 1561518
OFFSET
1,3
MATHEMATICA
Do[ If[ PrimeQ[ 2*9^n + 1], Print[ n ]], {n, 0, 1000}]
PROG
(PARI) is(n)=ispseudoprime(2*9^n+1) \\ Charles R Greathouse IV, Jun 12 2017
CROSSREFS
Cf. A003306 (n such that 2*3^n + 1 is prime).
Sequence in context: A249357 A291400 A369552 * A179991 A026698 A099428
KEYWORD
nonn,hard,more
AUTHOR
Robert G. Wilson v, Aug 22 2000
EXTENSIONS
More terms from Rick L. Shepherd, Apr 22 2003
a(21)-a(31) from David Broadhurst, Feb 22 2010
a(32)-a(34) from Paul S. Vanderveen, Feb 09 2020
STATUS
approved