I am doing some exam preparation and can't figure out how to do the following question. It seems to be a regular question and was wondering if anyone who could tell me an approach to this style of question in laymen's term as everything tutorial i have found is either unrelated or over complicated. The question is as followed
Find the value of the unique integer $x$ satisfying $0\le x <17$ for which $$4^{102400000002}\equiv x \pmod{17}$$
Since $17$ is prime, we can apply Fermat's little theorem: $$ a^{17}\equiv a\pmod{17} $$ for any integer $a$. More useful is the statement that $$ a^{16}\equiv 1\pmod{17} $$ whenever $17$ is not a divisor of $a$. Since $4$ is not divisible by $17$, we can write $$ 102400000002=16\cdot 6400000000+2 $$ so $$ 4^{102400000002}=(4^{16})^{6400000000}\cdot 4^2\equiv 1\cdot16\pmod{17} $$