OFFSET
1,2
COMMENTS
No other terms below 10^15. Some larger terms: 68363072121992414, 95409505835353571, 1579273736555455916822694118995172, 5481414795965035698701145369881812, 14905708205837180834697194210878924, 45415365018055454586462673640490785681840279, 147329898999183698422689397719859437775766016038732177717811807964. - Max Alekseyev, Oct 18 2016
FORMULA
A066438(a(n)) = a(n) - 3 for n > 2.
EXAMPLE
7^5 + 3 = 16810 = 5 * 3362, so 5 is a term.
MATHEMATICA
Select[Range[10000], Divisible[7^# + 3, #] &] (* Alonso del Arte, Oct 11 2016 *)
Join[{1, 2}, Select[Range[21*10^5], PowerMod[7, #, #]==#-3&]] (* The program generates the first 10 terms of the sequence. *) (* Harvey P. Dale, Sep 21 2022 *)
PROG
(PARI) is(n) = Mod(7, n)^n==-3 \\ Felix Fröhlich, Oct 14 2016
CROSSREFS
KEYWORD
nonn,more
AUTHOR
Seiichi Manyama, Oct 11 2016
EXTENSIONS
a(15)-a(20) from Max Alekseyev, Oct 18 2016
STATUS
approved