Query on a Solution to problem: If a is odd, then gcd(3a,3a+2)=1. I tried to put a=2k+1 to be an odd number. But it does not solved.
2026-04-07 22:56:24.1775602584
I have issue in the odd number part
497 Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail At
3
The crux is to know $\gcd(a,b)=\gcd(a,b-a)=\gcd(b,b-a)=\gcd(b,a-b)$, or more generally, the Euclidean algorithm: $\gcd(a,b)=\gcd(b,a\bmod b)$
So, we have $$\begin{align}\gcd(3a,3a+2)&=\gcd(3a,3a+2-3a)\\&=\gcd(3a,2)\\&=\gcd(2,3a)=\gcd(2,3a-2a)=\gcd(2,a)\end{align}$$
which equals 2 when $a$ is even and 1 when $a$ is odd.