MathCastle
Number TheoryMediumFermat, Euler and Wilson

Fermat, Euler and Wilson · Medium problem

Find the remainder when 1816118^{161} is divided by the prime 1919.