I'm trying to prove that $83\mid 3^{123}-1$, or in other words $3^{123}\equiv 1 \mod{83}$ .
Of course $\gcd(83,3)=1$ so from Euler's theorem $3^{\phi(83)}\equiv1 \mod{83}$, and $83$ is prime so $\phi(83)=82$, giving us that $3^{82}\equiv 1 \mod{83}$.
This is where I am stuck. I tried to show that $3^{41} \equiv 1 \mod{83}$ but I couldn't manage to do so. Also $83$ is prime so I can't try to prove this on each of his prime factors separately.