Skip to content
← All questions

Why does subtracting the smaller positive integer from the larger preserve their common divisors?

Subtracting the smaller positive integer from the larger preserves their common divisors because an integer divides both aa and bb exactly when it divides both aa and b−ab-a. Consequently, the sets of common divisors, and hence the greatest common divisor (gcd), stay the same.

Conditions

  • aa and bb are positive integers.
  • b>ab > a (so we subtract aa from bb).

Reasoning, step by step

  1. Let dd be a common divisor of aa and bb.
  2. Then dd divides bb and dd divides aa.
  3. Therefore, dd divides the difference b−ab-a.
  4. Since dd divides aa and b−ab-a, dd is a common divisor of aa and b−ab-a.
  5. Conversely, if dd divides aa and b−ab-a, then dd divides a+(b−a)=ba+(b-a)=b.
  6. Thus, the set of common divisors of (a,b)(a,b) is identical to the set of common divisors of (a,b−a)(a, b-a).
  7. The greatest element of this set, the gcd, remains unchanged.

Example

The script states: 'An integer divides both a and b exactly when it divides both a and b−ab-a. Consequently the sets of common divisors, and hence the gcd, stay the same.'

Common misconceptions

  • Believing that subtraction changes the magnitude of the gcd itself, rather than just the numbers involved.
  • Thinking that this property only holds for specific pairs of numbers, whereas it is a general property of divisibility.

Watch the explanation

Connected concepts

Explore next

Related questions

Understand why

↗
Find a method

↗
Find a method

↗
Know when to use it

↗

Answers are generated from source material and independently checked. Consult the original video or creator if something is unclear.