OFFSET
1,2
MATHEMATICA
Select[ Range[ 10^6 ], Mod[ PowerMod[ 9, #, # ] + PowerMod[ 8, #, # ] + PowerMod[ 7, #, # ] + PowerMod[ 6, #, # ] + PowerMod[ 5, #, # ] + PowerMod[ 4, #, # ] + PowerMod[ 3, #, # ] + PowerMod[ 2, #, # ], # ] == 0 & ]
Select[Range[2000000], Divisible[Total[PowerMod[Range[2, 9], #, #]], #]&] (* Harvey P. Dale, Feb 05 2013 *)
PROG
(PARI) is(n)=my(n2=Mod(2, n)^n, n3=Mod(3, n)^n); n2+n3+n2^2+Mod(5, n)^n+n2*n3+ Mod(7, n)^n+n2^3+n3^2==0 \\ Charles R Greathouse IV, Feb 28 2012
CROSSREFS
KEYWORD
nonn
AUTHOR
Robert G. Wilson v, Sep 22 2000
EXTENSIONS
a(14)-a(27) from Charles R Greathouse IV, Feb 28 2012
STATUS
approved