OFFSET
1,2
MATHEMATICA
Select[ Range[ 1, 10^5 ], Mod[ PowerMod[ 8, #, # ] + PowerMod[ 7, #, # ] + PowerMod[ 6, #, # ] + PowerMod[ 5, #, # ], # ] == 0 & ]
PROG
(PARI) for(n=1, 10^10, if(sum(k=5, 8, Mod(k, n)^n)==0, print1(n, ", "))) \\ Joerg Arndt, Feb 23 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
Robert G. Wilson v, Sep 20 2000
EXTENSIONS
More terms from Vincenzo Librandi and Joerg Arndt, Feb 23 2017
STATUS
approved