Teorema di euclide

$$ MCD(1180,482)\\ 1180/482 = 2 \text { con resto r1 = 216}\\ 482/216=2 \text { con resto r2 = 50}\\ 216/50=4 \text { con resto r3 = 16}\\ 50/16=3 \text { con resto r4 = 2}\\ 16/2=8 \text { con resto r5 = 0}\\ MCD(1180,482) = 2 $$

Teorema di Euclide Esteso

$$ ax + by = d $$

$$ ax+by=d\\ \Darr\\ ax\equiv \text{1 mod n} $$

ESERCIZIO