Re: Mod 2011



Nick wrote:
"Jyrki Lahtonen" <lahtonen@xxxxxx> wrote in message news:eoihr0$1ac0$2@xxxxxxxxxxxxxxxxx
León-Sotelo wrote:
Determine the remainder when 1004! is divided by 2011.

It is prime as quickly shown by using Excel.

Nick



In that case Wilson's theorem says that 2010! is congruent
to minus 1 modulo 2011. The rest is easy.

Cheers,

Jyrki
.