I am trying to solve a problem
Find the remainder when the $10^{400}$ is divided by 199?
I tried it by breaking $10^{400}$ to $1000^{133}*10$ .
And when 1000 is divided by 199 remainder is 5
.
So finally we have to find a remainder of :
$5^{133}*10$
But from here I could not find anything so that it can be reduced to smaller numbers.
How can I achieve this?
Is there is any special defined way to solve this type of problem where denominator is a big prime number?
Thanks in advance.