Knowee
Questions
Features
Study Tools

Prove the equality gcd(m, n) = gcd(n, m mod n) for every pair of positiveintegers m and n

Question

Prove the equality gcd(m, n) = gcd(n, m mod n) for every pair of positive integers m and n

🧐 Not the exact question you are looking for?Go ask a question

Solution

Sure, here is the proof for the equality gcd(m, n) = gcd(n, m mod n) for every pair of positive integers m and n.

Step 1: Let's assume that d is a common divisor of m and n. This means that there exist integers q and r such that m = dq and n = dr.

Step 2: Now, let's consider the modulo operation m mod n. This can be written as m = n*q + r, where q is the quotient and r is the remainder.

Step 3: Substituting the values of m and n from step 1, we get dq = dr*q + r. Simplifying, we get r = d(q - rq).

Step 4: This shows that r is also divisible by d. Hence, d is a common divisor of n and m mod n.

Step 5: Now, let's assume that d' is a common divisor of n and m mod n. This means that there exist integers q' and r' such that n = d'q' and m mod n = d'r'.

Step 6: From the equation m = n*q + m mod n, substituting the values of n and m mod n from step 5, we get m = d'q'q + d'r'. Simplifying, we get m = d'(q'q + r').

Step 7: This shows that m is also divisible by d'. Hence, d' is a common divisor of m and n.

Step 8: From steps 4 and 7, we can conclude that the set of common divisors of m and n is the same as the set of common divisors of n and m mod n.

Step 9: Therefore, the greatest common divisor of m and n is the same as the greatest common divisor of n and m mod n. Hence, gcd(m, n) = gcd(n, m mod n).

This completes the proof.

This problem has been solved

Similar Questions

Suppose | G | = n and m ∈ N is such that gcd(m, n) = 1. If g ∈ G and g^m = e,prove that g = e

For all integers a, b, c, m with m > 0 and c > 0, if ac ≡ bc (mod m), then a ≡ b (mod m)

Let a and b be two positive integers such that a = p3q4 and b = p2q3 , where p and q areprime numbers. If HCF(a,b) = pmqn and LCM(a,b) = prqs, then (m+n)(r+s

Let R be a relation on the set N of natural numbers defined by nRm Û n is a factor of m (i.e., n|m). Then R is

If m and n are two natural numbers and mn = 32, then find mn+m andnmn.(where n>1)3

1/1

Upgrade your grade with Knowee

Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.