Set . At each iteration with , compute the remainder , then setStop at the first index with and return . The positive second coordinates strictly decrease, so algorithm termination follows from the well-ordering principle. The equality of greatest common divisors established in (ii) is a loop invariant, and at termination it gives
Articles by others on the same topic
There are currently no matching articles.