OFFSET
1,1
LINKS
Joe K. Crump, 2^n mod n
EXAMPLE
135 is a term because 2^135 mod 135 = 53 and 2^137 mod 133 = 53.
PROG
(PARI) isok(n) = {va = Mod(2, n)^n; (lift(va) % 2) && (lift(va) == lift(Mod(2, n-2)^(n+2))); } \\ Michel Marcus, Sep 02 2013
CROSSREFS
KEYWORD
nonn,more
AUTHOR
Joe K. Crump (joecr(AT)carolina.rr.com), Aug 25 2000
EXTENSIONS
a(6) and title clarified by Sean A. Irvine, May 04 2022
STATUS
approved