Find $x$, such that
$$x^{98} \equiv 7 \mod 18$$
holds.
Reminder: Euler's totient function is given by $$\phi(n) = n\prod_{p_i|n}\left(1-\frac1{p_i}\right).$$
I actually don't know, how to even approach this. What is the common way, to approach this type of question? How do i start solving this? I tried simplifying to this:
\begin{align} x^{98} &\equiv 7 \mod 2 \Rightarrow x^{98} ≡ 1 \mod 2\\ x^{98} &\equiv 7 \mod 9 \end{align} but i'm not sure if this is the right approach.
Any help would be appreciated.
The idea is to resort to Euler's Theorem. You want to solve the equation $$x^{98}\equiv 7\,(\text{mod } 18).$$ This, in particular, would imply that $x^{98}=7 + 18\cdot n$ for some $n\in\mathbb{N}$, hence $x$ has to be coprime with $18$ (if $p$ divides $x$ and $18$, then it divides $x^{98}$ and $18$ and so $7$ as well, which is impossible). Thus you are in the hypothesis of Euler's Theorem: $x$ and $18$ are coprime and so $$x^{\varphi(18)}\equiv 1\,(\text{mod } 18).$$ By repeatedly using this relation, you should be able to simplify your equation to something more handy.