I wrote $13\times 12^{45}$ as $(12+1)\times 12^{45} = 12^{46}+12^{45}$ so I can use Fermat to say that $12^{46}$ equals $1$ in $\Bbb Z_{47} $.
Now I just have to find $12^{45}$ in $\Bbb Z_{47} $. I know that $12^2 = 144$ which equals $3$ in $\Bbb Z_{47} $, and by multiplying that again and again by $12$ and using some properties of congruences I got to $12^{45}$. I managed to see that the total remainder is $22$ (I'm not sure if that's correct).
Anyways, this method took me a lot of time and I'm sure that there is another way, faster way, to solve it. Any hint?
\cdot$\cdot$ and\times$\times$ are better for multiplication than*$*$ – gen-ℤ ready to perish Sep 05 '17 at 11:33