Greatest Common Divisor With large numbers

794 Views Asked by At

Find $\gcd(300^{40},2^{57})$ I know how to use Euclidean Algorithm for smaller numbers, but with these large numbers I'm not sure how to do it.

1

There are 1 best solutions below

0
On

Prime Factorize Each: $$300^{40}=2^{80}3^{40}5^{80}$$ $$2^{57}=2^{57}$$.

Thus, notice that $2^{57}|300^{40}$, and so the $\gcd$ is $2^{57}$.

In general, when approaching the $\gcd(a^{b}, c^{d})$, the easiest method would be to factorize $a$ and $c$.