OFFSET
1,2
COMMENTS
a(24) > 20000.
MAPLE
for k from 1 to 3000 do if isprime(3^(2*k + 1) - 3^k - 1) then print(k); end if; end do
MATHEMATICA
Do[If[PrimeQ[3^(2k + 1) - 3^k - 1], Print[k]], {k, 1, 3000}]
PROG
(PARI) for(k=1, 3e3, if(isprime(3^(2*k+1)-3^k-1), print1(k", ")))
(SageMath)
for k in range(1, 3000):
if is_prime(3^(2 * k + 1) - 3^k - 1):
print(k)
CROSSREFS
KEYWORD
nonn,more
AUTHOR
Reza K Ghazi, May 10 2021
EXTENSIONS
a(19)-a(21) from Michael S. Branicky, May 11 2021
a(22)-a(23) from Reza K Ghazi, May 14 2021
STATUS
approved