OFFSET
1,2
MATHEMATICA
Select[ Range[ 10^6 ], Mod[ PowerMod[ 12, #, # ] + PowerMod[ 11, #, # ] + PowerMod[ 10, #, # ] + PowerMod[ 9, #, # ] + PowerMod[ 8, #, # ] + PowerMod[ 7, #, # ], # ] == 0 & ]
Select[Range[60000], Divisible[Total[Table[PowerMod[i, n, n], {i, 7, 12}]], n]/.n->#&] (* Harvey P. Dale, Jun 23 2011 *)
PROG
(PARI) isA057257(n)=!sum(i=7, 12, Mod(i, n)^n) \\ Charles R Greathouse IV, Jun 24 2011
CROSSREFS
KEYWORD
nonn
AUTHOR
Robert G. Wilson v, Sep 21 2000
STATUS
approved