I'm trying to calculate $2^{47}\pmod{\! 65}$, but I don't know how...
I know that: $65=5\cdot 13$ and that:
$2^{47}\equiv 3 \pmod{\! 5}$ and $2^{47}\equiv 7\pmod{\! 13}$... (I used Euler)
But how should I continue from here? (I saw at WolframAlpha that the result is 33, but I don't have any idea how to get it...)
I'd like to get any help...
Thank you!
$\varphi(65)=(5-1)(13-1)=48$, so by Euler's theorem (since $(2,65)=1$):
$$2x\equiv 2\cdot 2^{47}\equiv 2^{48}\equiv 1\pmod{\! 65}$$
$$2x\equiv 66\stackrel{:2}\iff x\equiv 33\pmod{\! 65}$$