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

A095906
Numbers n such that 3^n-2^(n-1) is prime.
2
1, 2, 3, 4, 5, 9, 10, 11, 12, 16, 29, 34, 41, 61, 73, 186, 191, 241, 282, 1075, 1404, 1991, 2116, 3399, 3935, 4924, 5353, 7660, 8645, 11832, 16029, 17370, 19182, 22386, 27295, 30570, 41125, 61498, 64786, 72820, 90221, 122506, 132570, 142249, 179489, 181378
OFFSET
1,2
COMMENTS
a(47) > 2*10^5. - Robert Price, Jan 14 2016
MATHEMATICA
Do[ If[ PrimeQ[3^n - 2^(n - 1)], Print[n]], {n, 3000}]
PROG
(PARI) is(n)=ispseudoprime(3^n-2^(n-1)) \\ Charles R Greathouse IV, Jun 05 2017
CROSSREFS
Cf. A082103.
Sequence in context: A047603 A047362 A032969 * A333050 A328119 A118732
KEYWORD
nonn,more
AUTHOR
Herman H. Rosenfeld (herm3(AT)pacbell.net) and Robert G. Wilson v, Jun 17 2004
EXTENSIONS
More terms from Ray G. Opao, Jul 22 2004
a(30)-a(46) from Robert Price, Jan 14 2016
STATUS
approved