Use the Euclidean algorithm to find ALL the integer solutions of the equation:
$$5x+72y=1$$
My attempt:
$5x + 72y =1$
$72 = 14 \times 5 + 2 \quad (14~obtained~by~72/5 = 14.4)$
$5 = 2 \times 2 + 1$
Rewrite:
$1 = 5 - 2 \times 2$
$1 = 5 - 2 (72 - 14(5))$
Rewrite:
$5 - 2(72 - 14(5)) = 1$
$5 - 2(72) + 28(5) = 1$
$29(5) - 2(72) = 1$
However, in the solutions this is presented:
$$x = 29 + n \times 72$$
$$y = -2 - n \times 5$$
I have NO idea how they get there.
$$5x+72y=0 ; ; ? ; ;$$
– Will Jagy Apr 09 '24 at 16:46