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 :)
$$\begin{align} \bmod \color{#c00}{(2n)^2}!:,\ \dfrac{1}{1+2n}\equiv \dfrac{1-\color{#c00}{(2n)^2}}{1+2n}\equiv 1-2n\[.7em] \text{so Bezout is},\ \ (1-2n)(1+2n) , =, 1 - n(4n) \end{align}\qquad$$
This can be viewed as lifting an easy inverse $!\bmod 2n,$ to $!\bmod (2n)^2,$ by Newton's method (Hensel lifting)
– Bill Dubuque Jul 10 '21 at 11:51