How do you prove that 2 numbers are relatively prime?

What you want to show is that $$\left(\frac{a}{d},\frac{b}{d}\right)=1$$ if $d=(a,b)$. We can prove more, that is:

PROP Let $d>0$. Let $d$ be a common divisor of $a,d$. Then $\left(\dfrac{a}{d},\dfrac{b}{d}\right)=1$ if, and only if, $d=(a,b)$.

P First, suppose that $d=(a,b)$. Let $f$ be such that $f\; \left|\;\dfrac ad,\dfrac bd\right.$. We prove that $f=1$. But the above means that $fd\mid a,b$. Thus $fd\mid d$. This means that $f\mid 1$; so $f=1$.

Converesely, let $d$ be such that $\left(\dfrac{a}{d},\dfrac{b}{d}\right)=1$. We prove $d=(a,b)$. It is clear $d$ is a common divisor, so if $d'=(a,b)$; $d \mid d'$. We have that $$\frac{d'}{d}\frac{a}{d'}=\frac{a}{d}$$ $$\frac{d'}{d}\frac{b}{d'}=\frac{b}{d}$$

Thus $\dfrac{d'}{d}\left|\; \dfrac{a}d,\dfrac bd\right.$ whence $\dfrac{d'}{d}\left|\;\right.\left( \dfrac{a}d,\dfrac bd\right)=1$, so $\dfrac{d'}{d}=1$, $d=d'$. $\blacktriangle$.

Given a∈ℤ, b∈ℤ, we can say a and b are co-prime if and only if gcd(a, b) = 1. Show that the numbers 6n+ 5 and 7n+ 6 are co-prime ∀n≥1.

What I know:

I know that I can use a theorem to create a linear combination of two integers, a and b that will tell me that the smallest positive integer linear combination of a and b is gcd(a, b). More specifically, if we let a∈ℤ and b∈ℤ, such that both are not equal to zero at the the same, then we know that the smallest positive integer of the form ax + by, where x∈ℤ and y∈ℤ, is: gcd(a, b)

Although I have this definition, I still do not understand how I am supposed to utilize this theorem in order to prove that the two numbers I was given are indeed co-prime.

Two numbers are said to be relatively prime when they have only 1 as the common factor or we can say that there is no same value other than one that you could divide them both and get zero as a remainder.

What are Relatively Prime Numbers?

If the only common factor of two numbers a and b is 1, then a and b are relatively prime numbers. In this case, (a, b) is said to be a relatively prime pair. These numbers need not be prime numbers always. Two composite numbers can also be relatively primes, for example, 9 and 10. Relatively prime numbers are also referred to as mutually prime (or) coprime numbers.

How to Find Relatively Prime Numbers?

To find whether two numbers are relatively prime or not, we find the HCF of the numbers. If the HCF is 1, then the two numbers are said to be relatively primes. The HCF-Highest Common Factor of two numbers can be found by listing down all the factors and then selecting the highest common factor out of those.

For example: Let's determine whether the given pairs of numbers are relatively prime or not a) 7 and 9; b) 8 and 10.
a) 7 and 9
The factors of 7 are 1 and 7
The factors of 9 are 1, 3, and 9
1 is the only common factor of 7 and 9
HCF of (7, 9) = 1
Thus, (7, 9) is relatively prime because only 1 is a common factor.

b) 8 and 10
The factors of 8 are 1, 2, 4, and 8
The factors of 10 are 1, 2, 5, and 10
1 and 2 are the common factors of 8 and 10.
HCF (8, 10) = 2
Thus, (8,10) is not relatively prime.

How do you prove that 2 numbers are relatively prime?

Properties of Relatively Prime Numbers

Some of the properties of relatively prime numbers are:

  • The HCF-Highest Common Factor of two relatively prime numbers is always 1. For example, 5 and 9 are relatively prime numbers, and hence, HCF (5, 9)= 1
  • The LCM-Least Common Multiple of two relatively prime numbers is always their product. The relation between HCF and LCM of two numbers, suppose a and b, is HCF (a, b) × LCM (a, b) = a × b. As the numbers are relatively prime their HCF is 1 therefore the product of numbers is equal to the LCM of numbers. For example, 2 and 3 are relatively prime numbers. Hence, LCM = 2 × 3 = 6
  • The sum of two relatively prime numbers is always relatively prime with their product. For example,2 and 3 are relatively prime numbers. Here, 2 + 3 = 5 is relatively prime with 2 × 3 = 6. The only common factor of 5 and 6 is 1.
  • Any two prime numbers are always relatively prime. For example, in 19 and 17 the only common factor is 1 and they are prime numbers too.
  • A prime number is relatively prime with any other number because prime numbers are the numbers that can be divided by one or themselves. Thus, if we pair up any prime number with other numbers the result will be relatively prime because the common factor will be one. For example, 17 and 25 are relatively prime because the common factor of both numbers is 1. Factors of 17 are 1 and 17 and factors of 25 are 1, 5, 25.
  • Any two consecutive numbers are always relatively prime. For example, 28 and 29 are two consecutive numbers. Factors of 28 are 1, 2, 4, 7, 14, 28, and factors of 29 are 1, 29, so the only common factor is 1.

Important Notes

Given below are some of the important notes related to relatively prime that we read in this article. Have a look!

  • Any two prime numbers are relatively prime.
  • Any two consecutive numbers are relatively prime.
  • A prime number is relatively prime with any other number.
  • Two even numbers are NEVER relatively prime because number 2 is a factor of all even numbers. Hence they are not relatively prime.
  • Two numbers are relatively prime if their HCF is 1 and vice versa.
  • Relatively prime numbers don't need to be prime numbers. For example, two composite numbers 12 and 35 are relatively prime numbers because their HCF is 1.

Check out the important topics mentioned below to learn more about the relatively prime numbers and its related topics.

  • Prime Numbers
  • Prime Factorization
  • Coprime Numbers

FAQs on Relatively Prime Numbers

What are Relatively Prime Numbers?

Two numbers are said to be relatively prime if the common factor between the numbers is one. For example, 34 and 35 are relatively prime. Factors of 34 are 1, 2, 17, 34, and factors of 35 are 1, 5, 7, 35. the HCF-Highest Common Factor is one.

Are 4 and 9 Relatively Prime?

Yes, 4 and 9 are relatively prime because the HCF of 4 and 9 is 1. Factors of 4 are 1,2, 4, and factors of 9 are 1,3,9.

Is 42 and 77 Relatively Prime?

No, 42 and 77 are not relatively prime because the HCF of 42 and 77 is 7. Factors of 42 are 1, 2, 3, 6, 7, 14, 21, and 42, and factors of 77 are 1, 7, 11, and 77. Thus we can see that 7 is the HCF of 42 and 77.

How do you Prove Two Consecutive Numbers are Relatively Prime?

Let's assume n and n+1 are two consecutive numbers. If not a single factor of n is similar to factors of n+1 except one. That means the only common factor of two consecutive numbers is 1. Therefore, n and n+1 are relatively prime. For example, 39 and 40 are two consecutive numbers. Factors of 39 are 1, 3, 13, 39, and factors of 40 are 1, 2, 4, 5, 8, 10, 20, 40. We can see that only 1 is common in the factors of two consecutive numbers, therefore 39 and 40 are relatively prime.

Which Positive Integers less than 12 are Relatively Prime to 12?

The positive integers less than 12 that are relatively prime to 12 are 1, 5, 7, and 11.

What does it mean for two numbers to be relatively prime?

Two integers are relatively prime if they share no common positive factors (divisors) except 1.

Are 35 and 72 relatively prime?

GCF of 35 and 72 by Prime Factorization As visible, there are no common prime factors between 35 and 72, i.e. they are co-prime.

How do you know if two numbers are relatively prime in Java?

In the iterative approach, we first divide a by b and get the remainder. Next, we assign a the value of b, and we assign b the remainder value. We repeat this process until b = 0. Finally, when we reach this point, we return the value of a as the gcd result, and if a = 1, we can say that a and b are relatively prime.

Are 17 and 51 relatively prime?

Answer. Answer: yes, 17 and 51 are Co prime no. s as they both have 1 as there common factor.