I have an assignment(which gives no credit) which I cant solve so I would like to get some help
$3^{{1001}^{1002}}\pmod {43}$ (All original numbers were replaced)
Our hint was to use the Chinese-remainder-theorem but I don't see how when $43$ is a prim number.
$$3^{1001^{1002}}\equiv3^{1001^{1002}\pmod{\phi(43)}}\pmod{43}$$
Now, $\phi(43)=42=2\cdot3\cdot7;$
As $(1001,42)=7$
let use find $\displaystyle 1001^{1002-1}\pmod{\frac{42}7}$
As $1001\equiv-1\pmod6\implies 1001^{1002-1}\equiv(-1)^{1001}\equiv-1\pmod6$
$\displaystyle\implies1001^{1002}\equiv1001(-1)\pmod{6\cdot1001}\equiv-1001\pmod{42}\equiv7$