Step-by-step explanation:
In some language, the function can be written recursively using the correct Euclidean algorithm as ...
gcd[y_, x_] := If[Mod[y,x]==0, x, gcd[x, Mod[y,x]]]
Using this on the given numbers, you get ...
gcd[462, 1071] = 21
9.5m questions
12.2m answers