I encountered this problem that I do not fully understand.
Find the multiplicative inverse of $[45]$ in $Z_{101}$ . Then determine the integer x between 1 and 100 such that
$45^{99} \equiv x$ (mod 101)
Using the Euclidean algorithm the multiplicative inverse of $[45]$ can be found as [9].
However finding $x$ is where my effort halts.
Lets denote $a=45$, $e = 99$ and $p = 101$.
Since $p$ is a prime and $a \nmid p$ Fermat's little theorem gives
$a^{p-1} \equiv 1$ (mod p) = $45^{101-1} \equiv 1$ (mod 101)
in a case where $e > (p-1)$ we could simply evaluate $a^e$ as follows
$a^e = a^{k \cdot (p-1) + r} \equiv a^r$ (mod p) where $k$ and $r$ are integers.
Finally $a^r$ could be envaulted in mod p and x would be found.
However, in this problem, $e < (p-1)$ = $(99 < 100)$ and the evaluation described above is not possible. I.e. we can not evalute $45^{99}$ as $45^{k \cdot 100 + r}$.
In summary, how can $x$ be found in the equation
$a^e \equiv x$ (mod p)
when $e < (p-1)$?