Riemann Console dot org

An open research record on the Riemann Hypothesis.

NAV READY · TYPE SHORTCUT · ENTER EXECUTES

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

1,2,4,8.1,2,4,8.

The positive divisors of 15 are

1,3,5,15.1,3,5,15.

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

gcd⁡(a,b)=1.\gcd(a,b)=1.

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

a, a+q, a+2q,…a,\ a+q,\ a+2q,\ldots

the condition gcd⁡(a,q)=1\gcd(a,q)=1 is exactly the condition that aa and the step size qq 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.

Related glossary terms

  1. [..]Arithmetic progressionGLOSSARY · STANDARD MATHEMATICS
  2. [..]Euler's totient functionGLOSSARY · STANDARD MATHEMATICS
  3. [..]Greatest common divisorGLOSSARY · STANDARD MATHEMATICS
  4. [..]Modular arithmeticGLOSSARY · STANDARD MATHEMATICS
  5. [..]Prime factorisationGLOSSARY · RIEMANN HYPOTHESIS
  6. [..]Prime numberGLOSSARY · RIEMANN HYPOTHESIS
  7. [..]Residue classGLOSSARY · STANDARD MATHEMATICS

Read this term in context

  1. [..]The lanes of the primesARTICLE · ART-RC-0124
  2. [..]Arithmetic progressionARTICLE · ART-RC-0120
  3. [..]Euler's totient functionARTICLE · ART-RC-0123
  4. [..]Greatest common divisorARTICLE · ART-RC-0122
  5. [..]Residue classARTICLE · ART-RC-0119