What is 2021^2021 mod 31?
2021 is 6 mod 21 and the powers of 6 repeat in the infinite loop 6-5-6-5-6-5... and 2021 is 1 mod 2 so 2021^2021 is 6 mod 31.
:D