I am trying to find the following:
The least positive integer $n$ for which
$3^n \equiv 1$ (mod $7$)
And hence $3^{100}$ (mod $7$).
The least positive integer $n$ for which
$5^n \equiv 1$ (mod $17$) or $5^n \equiv -1$ (mod $17$)
And hence evaluate $5^{243}$ (mod $17$).
Evaluate $2^4$ (mod $18$) and hence evaluate $2^{300}$ (mod $18$).
I've learned how to use the Euclidean algorithm, but I have no idea how to compute congruence when they have exponents, as above. These seem very daunting to me. I would greatly appreciate it if people could please take the time to explain how this is done.
I will then post my work for each of these for, if possible, feedback on the solutions, since I do not have any solutions for these.
Thank you.