1,1

Table of n, a(n) for n=1..6.

Joe K. Crump, 2^n mod n

135 is a term because 2^135 mod 135 = 53 and 2^137 mod 133 = 53.

(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

Cf. A015911.

Sequence in context: A106175 A203625 A051307 * A065663 A269062 A270301

Adjacent sequences: A056737 A056738 A056739 * A056741 A056742 A056743

nonn,more

Joe K. Crump (joecr(AT)carolina.rr.com), Aug 25 2000

a(6) and title clarified by Sean A. Irvine, May 04 2022

approved