Find the greatest common divisor of $8^{10} + 12$ and $8^5$
I found the answer using a rather silly method:
I found the GCD of the two numbers by finding the GCD of all the three numbers $8^{10}$, $12$ and $8^5$. Which is $4$.
I feel like there is a more proper way to do it: however, the only other method I could think of is the Euclidean algorithm.
$(8^{10} + 12) ÷ 8^5 = 8^5$ with a remainder of $12$
$8^5 ÷ 12 =\dots$
I am sure I am not suppose to use this algorithm, since I am not allowed to use any calculators.
Since $8^5$ is a factor of $8^{10}$, using the euclidean algorithm,
$$\begin{align} gcd (8^{10} + 12, 8^5) &= gcd (mod(8^{10} + 12, 8^5), 8^5) \\ &= \cdots\end{align}$$