I was given the following problem:
Find the smallest positive integer $m$ such that $$(49^{13})^m \equiv 49 \pmod{155}.$$
My approach:
We know that $\varphi(155) = 120$ and $\gcd(49,155) = 1$. Thus Euler's Theorem tells us that $$49^{120} \equiv 1 \pmod{155},$$ so we can conclude that $$49^{120k} \equiv 1 \pmod{155}$$ holds for every $k \in \mathbb{N}$. Now I found $k = 4$ to be the smallest integer such that $m := \frac{120k + 1}{13} = 37 \in \mathbb{N}$ holds. This $m$ now fulfills the equation $$\begin{aligned} 49^{13m-1} &\equiv 1 \pmod{155} \\ \iff (49^{13})^m &\equiv 49 \pmod{155}.\end{aligned}$$ Unfortunately this isn't the smallest positive integer $m$. Any suggestions for a better approach?
(By Brute Force I found the solution to be $m = 7$ if this helps.)