How to find the $\gcd(2020^{1830} +2, 2020^{1830} -2)$? I can't seem to find the gcd because of the large numbers.
2026-04-07 07:46:03.1775547963
On
On
GCD with two big large numbers
373 Views Asked by user815501 https://math.techqa.club/user/user815501/detail At
5
There are 5 best solutions below
2
On
Let $2020^{1830}=a$. So you want $\gcd(a+2,a-2)$. Lets say this value be $d$. Thus, $d|a+2,d|a-2\implies d|4\implies d\in\{1,2,4\}$. But $4\not| a+2$ as $4|a$. Thus, $d\neq 4$ but $a+2,a-2$ are even, so $d=2$.
0
On
By the Euclidean algorithm,
$$(2020^{1830}+2,2020^{1830}-2)\to(2020^{1830}-2,4)^*\to(4,2)\to(\color{green}2,0)$$
$^*$It is obvious that $2020^{1830}=2^{1830}1010^{1830}$ is a multiple of $4$.
$\gcd(a,b) = \gcd(b,a \bmod b)$ is key.
So your gcd equals $\gcd(2010^{1830}-2, 4)$ so ask yourself, what is the remainder of $2010^{1830}-2$ modulo $4$? It's clear that it's $2$ as the power is divisible by $4$. So we get $\gcd(4,2)=2$ in the end.