Mock AIME 4 2006-2007 Problems/Problem 7
Problem
Find the remainder when is divided by 1000.
Solution
Fermat's little theorem comes in handy here:
So we are looking for
We brute force it:
This problem needs a solution. If you have a solution for it, please help us out by adding it.