OFFSET
1,1
COMMENTS
LINKS
Jianing Song, Table of n, a(n) for n = 1..163 (all terms below 10^9)
FORMULA
66 is a term because 66 divides 3^66 - 3 = 3*(3^65 - 1) = 3*(3^5 - 1)*(3^60 + 3^55 + ... + 3^5 + 1) and 66 is divisible by 3.
PROG
(PARI) forstep(n=3, 1e7, 3, if(Mod(3, n)^n==3, print1(n, ", ")))
CROSSREFS
KEYWORD
nonn
AUTHOR
Jianing Song, Feb 17 2019
STATUS
approved