OFFSET
1,2
COMMENTS
No further terms up to 10^15. Larger term: 64629734103979763971. - Max Alekseyev, Oct 15 2016
MATHEMATICA
Select[Range[1000000], IntegerQ[(PowerMod[5, #, # ]+2)/# ]&]
PROG
(PARI) is(n)=Mod(5, n)^n==-2 \\ Charles R Greathouse IV, Nov 04 2016
CROSSREFS
KEYWORD
hard,more,nonn
AUTHOR
Alexander Adamchuk, Nov 04 2006
EXTENSIONS
More terms from Farideh Firoozbakht, Nov 18 2006
a(9) from Ryan Propper, Jan 29 2007
a(10)-a(13) from Max Alekseyev, Jul 28 2009, Oct 15 2016
STATUS
approved