OFFSET
0,2
COMMENTS
All positive terms are primes.
a(50)-a(67) = {7, 0, 79, 2, 0, 2, 109, 0, 5, 5, 0, 2, 5, 0, 131, 2, 0, 2}. a(69)-a(121) = {0, 3, 19, 0, 2, 5, 0, 11, 2, 0, 13, 7, 0, 3, 2, 0, 3, 11, 0, 3, 19, 0, 2, 3, 0, 11, 2, 0, 2, 3, 0, 17, 2, 0, 2, 3, 0, 5, 2, 0, 3, 31, 0, 17, 5, 0, 47, 31, 0, 3, 3, 0, 2}.
a(49) > 10000. - Jinyuan Wang, Nov 28 2020
FORMULA
a(3*n) = 0.
PROG
(PARI) a(n) = my(p=2); if(n%3, while(!ispseudoprime(((n+3)^p-3^p)/n), p=nextprime(p+1)); p, 0); \\ Jinyuan Wang, Nov 28 2020
CROSSREFS
KEYWORD
nonn,hard,more
AUTHOR
Alexander Adamchuk, Feb 11 2007
STATUS
approved