OFFSET
1,2
COMMENTS
No other terms below 10^15. Some larger terms: 194995887252090239, 2185052151122686482926861593785262. - Max Alekseyev, Oct 13 2016
EXAMPLE
3 == 5 (mod 1), so 1 is a term;
9 == 5 (mod 2), so 2 is a term.
MATHEMATICA
Select[Range[10^7], PowerMod[3, #, #] == Mod[5, #] &] (* Michael De Vlieger, Sep 26 2016 *)
PROG
(PARI) isok(n) = Mod(3, n)^n == Mod(5, n); \\ Michel Marcus, Sep 17 2016
(Python)
A276740_list = [1, 2, 4]+[n for n in range(5, 10**6) if pow(3, n, n) == 5] # Chai Wah Wu, Oct 04 2016
CROSSREFS
KEYWORD
nonn,more
AUTHOR
Dmitry Ezhov, Sep 16 2016
EXTENSIONS
a(11)-a(13) from Chai Wah Wu, Oct 05 2016
a(14) from Lars Blomberg, Oct 12 2016
a(15)-a(18) from Max Alekseyev, Oct 13 2016
a(12) was missing Robert G. Wilson v, Oct 19 2016
STATUS
approved