Using the Euclid's algorithm, find the gcd($4n$,$2n+1$) for $n \in N$ and express it as a linear combination of $4n$ and $2n+1$.
I started by testing different values for n:
$n = 1$ $\rightarrow$ gcd($4(1)$,$2(1)+1$) = 1
$n = 2$ $\rightarrow$ gcd($4(2)$,$2(2)+1$) = 1
$n = 3$ $\rightarrow$ gcd($4(3)$,$2(3)+1$) = 1
.
.
.
You can see that $2n+1$ is going to be the odd numbers, but I don’t know how to associate this with Euclid's algorithm.
And with respect to the linear combination I just know it can be the way:
For $4n = (2n+1)(?)+??$ and for $2n+1 = (2n-1)(?)+??$
but I don’t know how to go on, I hope you can help me :)
Well, $\frac{4n}{2n+1}<2$, so our first multiplicand must be $1$: $$4n=(2n+1)(1)+(2n-1)$$ Same with our second: $$2n+1=(2n-1)(1)+2$$ Then $$2n-1=2(n-1)+1$$ So our GCD is $1$