MathCastle
Number TheoryEasyFermat, Euler and Wilson

Fermat, Euler and Wilson · Easy problem

The number 1111 is prime and 55 is not a multiple of 1111. Use Fermat's Little Theorem to find the remainder when 5105^{10} is divided by 1111.