Today I got a question:
Find the remainder when $2^{1990}$ is divided by $1990$
I tried as follows
$199$ is a prime, so by Fermat's theorem
$$2^{199}\equiv 2 \pmod{199}$$
Now I used if $$a\equiv b \pmod{\alpha}$$
Then $$a^{10}\equiv b^{10}\pmod{ 10\alpha}$$
Then$$2^{1990}\equiv 2^{10}\pmod{1990}$$
Which is the answer.
But I am not able to prove the property that I had used. I would be pleased if someone would help me to prove or disprove the property. If I had used a wrong property then please provide other method to find the remainder.