Prove that $\gcd(a,b) = \gcd(b,a)$

6.3k Views Asked by At

I want to prove $\gcd(a,b)=\gcd(b,a)$. I tried using the euclidean algorithm but that didn't help me much.

2

There are 2 best solutions below

1
On BEST ANSWER

If $\gcd(a,b)=x$ then $x \mid a$ and $x\mid b$ this implies $x \mid \gcd(b,a)$. By similar argument $\gcd(b,a)\mid\gcd(a,b).$ i.e., $\gcd(a,b) = \gcd(b,a). $

0
On

A divisor of $a$ and $b$ is a number $c$ such that $c\mid a$ and $c\mid b$. Note that a divisor of $a$ and $b$ is trivially a divisor of $b$ and $a$.