Some numbers share nothing in common.
Some numbers share nothing in common.
Other numbers do share parts. Six and nine both have three in them. This means they are not special like eight and nine.
We can use these numbers in machines. Some gears work best when they are special. This helps the gears wear down evenly.
If you pick two numbers at random, they are often special. This happens about 61 percent of the time.
It is fun to look for these pairs!
Sometimes, two numbers share nothing in common. We call these numbers coprime. This means the only number that can divide both of them is one.
Think about the numbers eight and nine. No number other than one fits into both. So, they are coprime. But six and nine are not coprime. Both of those numbers can be divided by three.
When we look at a group of numbers, things get more complex. A set can be coprime if only one number divides all of them. For example, six, ten, and fifteen are coprime. But they are not "pairwise coprime." This means some pairs in the group still share a part. In that group, six and ten both share two.
We can even find these pairs in a tree shape. This helps us see how they connect. Scientists and engineers use these numbers in many ways. For example, gear makers use coprime numbers for gear teeth. This helps the gears wear down evenly. It is also used in secret codes. If you pick two numbers at random, they are coprime about 61 percent of the time.
Imagine you have two different numbers. You want to see if they share any common factors. A factor is a number that can divide into another number perfectly. If the only number that fits into both is one, they are called coprime. You might also hear people call them relatively prime or mutually prime. This means they do not share any prime numbers as divisors. For example, the numbers eight and nine are coprime. Neither of them is a prime number on its own. However, they are coprime because only one divides both.
How can we tell if numbers are coprime? One way is to find the greatest common divisor. This is the largest number that divides into both. If that number is one, they are coprime. Mathematicians use a fast method called the Euclidean algorithm to check this. There are even faster versions like the binary GCD algorithm. You can also use Lehmer's GCD algorithm to find the answer. This helps us work with very large numbers quickly.
Numbers have a long history of being studied this way. In a 1989 textbook, three writers named Ronald Graham, Donald Knuth, and Oren Patashnik suggested a new idea. They proposed using the word "prime" instead of "coprime." They wanted to show that one number is prime to another. This helps make the math language feel more consistent. Many ideas about these numbers come from famous mathematicians like Leonhard Euler. In 1735, Euler solved a famous problem related to these patterns.
We can also look at groups of numbers rather than just two. A set of numbers is coprime if one is the only factor for all of them. For example, six, ten, and fifteen are coprime. This is because only one divides all three numbers. But there is a stronger rule called pairwise coprime. This means every single pair in the group must be coprime. In our group, six and ten are not coprime because they share two.
Coprime numbers are very useful in the real world. Machine designers use them to make gears work better. If gear teeth counts are coprime, the gears wear down evenly. This is helpful for making machines last longer. People also use these numbers to create secret codes. In the past, machines used different loop lengths for keys. Using pairwise coprime lengths helped these machines work best. Even if you pick two numbers at random, they are coprime about 61 percent of the time.
In number theory, mathematicians study how integers relate to one another through division. Two integers, $a$ and $b$, are called coprime, relatively prime, or mutually prime if their only common positive divisor is 1. This relationship means that no prime number can divide both $a$ and $b$. Another way to state this is that their greatest common divisor (GCD) is exactly 1. You can express this mathematically using the notation $\text{gcd}(a, b) = 1$.
To determine if two numbers are coprime, mathematicians use specific algorithms. The Euclidean algorithm is a fast method for finding the greatest common divisor. There are even faster versions of this process, such as the binary GCD algorithm or Lehmer's GCD algorithm. Beyond just checking pairs, we can count how many integers are coprime to a specific positive integer $n$ within a certain range. This is calculated using Euler's totient function, often written as $\phi(n)$. This function is a vital tool for understanding the density and distribution of coprime numbers in the number system.
We can also apply the concept of coprimality to larger sets of integers. A set of numbers is considered coprime, or setwise coprime, if the greatest common divisor of all elements in the set is 1. For instance, the numbers 6, 10, and 15 are coprime because no single integer greater than 1 divides all three. However, a stronger condition exists called pairwise coprimality. In a pairwise coprime set, every possible pair of different integers in that set must be coprime. The set {4, 5, 6} is setwise coprime, but it is not pairwise coprime because 4 and 6 share a common factor of 2.
There are several mathematical properties that emerge from coprimality. If $a$ and $b$ are coprime, there exist integers $x$ and $y$ such that $ax + by = 1$. This is known as Bézout's identity. Additionally, if $a$ and $b$ are coprime, their least common multiple is simply their product, $ab$. This leads to a useful rule: if $a$ and $b$ are coprime to $n$, then their product $ab$ is also coprime to $n$. This property is a consequence of Euclid's lemma, which states that if a prime divides a product, it must divide at least one of the factors. Furthermore, any powers of these numbers, such as $a^n$ and $b^n$, will remain coprime to one another.
Coprimality can even be visualized geometrically. In a Cartesian coordinate system, the point $(a, b)$ is "visible" from the origin $(0, 0)$ if and only if $a$ and $b$ are coprime. This means there are no other points with integer coordinates lying directly on the line segment connecting the origin to $(a, b)$.
If you were to choose two integers at random, there is a specific probability that they will be coprime. This probability is approximately 61%, or more precisely, $6/\pi^2$. This value is linked to the Riemann zeta function, specifically $\zeta(2)$, which Leonhard Euler solved in 1735 as the Basel problem. While you cannot truly pick a random integer from an infinite set with equal probability, mathematicians use the idea of natural density to formalize this. Ernesto Cesàro proved in 1881 that as the range of numbers increases, the probability approaches this $6/\pi^2$ limit.
These mathematical principles have important practical applications in engineering and security. In machine design, engineers choose tooth counts for meshing gears that are relatively prime. This ensures even, uniform wear across the gear teeth, which helps the machine last longer. In the history of cryptography, coprimality was essential for rotor machines and Vernam ciphers. Using pairwise coprime lengths for key loops or rotor teeth helped create complex, non-repeating patterns. This demonstrates how the simple absence of shared factors can create much greater complexity in mechanical and digital systems.
🖼️ Images & Media (2)
More to explore
✨ What else?
Related topics you might enjoy
🔬 Go deeper
More advanced topics to explore
🪜 Step back
Simpler topics to build understanding
What is Nepedia?
A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.