MathCastle
Number TheoryChallengeFermat, Euler and Wilson

Fermat, Euler and Wilson · Challenge problem

Let N=111…1N = 111\ldots1 be the number written with one hundred 11's. The number 9797 is prime. Find the remainder when NN is divided by 9797.