login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A057257
Numbers n such that n | 12^n + 11^n + 10^n + 9^n + 8^n + 7^n.
0
1, 3, 9, 19, 27, 33, 57, 81, 171, 207, 243, 253, 361, 513, 729, 1083, 1539, 1791, 1809, 2187, 2673, 3249, 3699, 4617, 5643, 6561, 6859, 8303, 9747, 10449, 11601, 11913, 13851, 19683, 20493, 20577, 29241, 41193, 41553, 43263, 46569, 50301, 59049
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
Sequence in context: A032670 A068677 A069832 * A029464 A029479 A215803
KEYWORD
nonn
AUTHOR
Robert G. Wilson v, Sep 21 2000
STATUS
approved