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

A090669
Numbers k such that 7^k - 2 is a prime.
26
1, 2, 4, 7, 8, 12, 15, 28, 31, 84, 98, 128, 238, 302, 859, 1508, 1586, 2091, 2796, 2888, 3924, 4815, 5636, 6596, 7090, 20176, 22176, 56386, 84050, 115515, 245608, 259710, 274120
OFFSET
1,2
EXAMPLE
7^12 - 2 = 13841287199 a prime number.
MATHEMATICA
Do[ If[ PrimeQ[7^n - 2], Print[n]], {n, 1, 2000}] (* Robert G. Wilson v, Dec 22 2003 *)
PROG
(PARI) is(n)=isprime(7^n - 2) \\ Charles R Greathouse IV, Apr 28 2015
KEYWORD
nonn,more
AUTHOR
Herman H. Rosenfeld (herm3(AT)pacbell.net), Dec 16 2003
EXTENSIONS
Corrected and extended by Robert G. Wilson v and Ray Chandler, Dec 22 2003
Three more terms from Ryan Propper, Dec 07 2008
a(28)-a(30) from Robert Price, Jan 24 2014
a(31)-a(32) from Paul Bourdelais, Jan 29 2021
a(33) from Paul Bourdelais, Aug 02 2023
STATUS
approved