Coprime
- Category
- STANDARD MATHEMATICS
- Definition
- Two integers are coprime if their only positive common divisor is 1.
- Math Level
- GENERAL
- Index Excerpt
- coprime; co-prime; relatively prime; mutually prime; relatively coprime; gcd equals 1
Consider the pair 8 and 15\.
The positive divisors of 8 are
The positive divisors of 15 are
The only positive divisor they share is 1\.
Now compare 8 and 12\. Both are divisible by 2 and by 4, so they share factors greater than 1\.
We say that \\8 and 15 are coprime\\, while 8 and 12 are not.
Coprime is therefore a relationship between two integers. It does not mean that either number must itself be prime.
Indeed, neither 8 nor 15 is a prime number, yet the pair is coprime because the two numbers share no prime factor.
Another common term is \\relatively prime\\.
Once greatest common divisor notation has been introduced, the same definition can be compressed to
Two integers are coprime exactly when their greatest common divisor is 1\.
This idea becomes particularly useful in modular arithmetic.
Modulo 6, the possible residues are 0, 1, 2, 3, 4 and 5\. Only 1 and 5 are coprime to 6\. The residues 0, 2 and 4 share the factor 2 with 6; residue 3 shares the factor 3\.
This immediately explains why, apart from the exceptional primes 2 and 3 themselves, every prime must lie in residue class 1 or 5 modulo 6\.
Those two classes are sometimes informally described as \\available\\ or \\prime-compatible\\ classes.
(“Prime-compatible” does not mean “prime”. It means only that the modulus has not already forced a common factor. For example, 25 is coprime to 6 but is nevertheless composite.)
The distinction is crucial. A residue class that is not coprime to the modulus has a built-in divisibility obstruction for sufficiently large primes. A residue class that \\is\\ coprime merely survives that obstruction. It may contain primes and composites.
Coprimality is central to Dirichlet's theorem. For a progression
the condition is exactly the condition that and the step size are coprime.
Dirichlet's theorem then says that such a progression contains infinitely many primes.
See also: greatest common divisor, residue class, arithmetic progression, Euler's totient function, prime number, prime factorisation.