I want to know if the procedure I have followed in order to get the result for the next problem is correct. The problem is this:
Find the rest of the division when $23^{84292}$ is divided by $7$.
As $7$ is a prime number and $23$ is not divided by $7$ Small Fermat's Theorem can be used. So, I know,
$23^{6}\equiv1\pmod7$ and $23^{6\cdot 14048} = 23^{84288} \equiv1\pmod7$
Then,
$23^{84288}\cdot 23^{4}=23^{84292}$
And,
$23 \equiv 2\pmod7$
So, finally,
$23^{84288}\cdot 23\cdot 23\cdot 23\cdot 23=23^{84292} \equiv 16\pmod7$
So,
$23^{84292} \equiv 2\pmod7$
Is the procedure and the result all correct?
Yes, that is correct. $\tiny{\text{(Converting to an answer.)}}$
By the way, you could have saved a little bit of work by noting $ 23 \equiv 2 \pmod 7 $ from the start. This way, you could write $2$ for every $23$.