Michael's prime pairs

How many ordered pairs of positive coprime integers ( x , y ) (x,y) satisfy x + y = 104 ? x + y = 104 ?

This problem is posed by Michael T .

Details and assumptions

For an ordered pair of integers ( a , b ) (a,b) , the order of the integers matter. The ordered pair ( 1 , 2 ) (1, 2) is different from the ordered pair ( 2 , 1 ) (2,1) .


The answer is 48.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

5 solutions

Trevor B.
Oct 20, 2013

104 104 is even, so pairs of even numbers add up to it. These can be eliminated from the 103 103 possible pairs of positive integers that would work. There are 51 51 even pairs, from 2 + 102 2+102 to 102 + 2 102+2 . Other pairs that would not be coprime are odd multiples of 13 13 . These are 13 + 91 13+91 , 39 + 65 39+65 , 65 + 39 65+39 , and 91 + 13 91+13 . This is 4 4 pairs. 103 51 4 = 48 103-51-4=48 .

Moderator note:

Nice solution and explanation!

This is also basically Euler's totient function.

Daniel Chiu - 7 years, 7 months ago

Log in to reply

Nice observation, it definitely is.

Alexander Borisov - 7 years, 7 months ago

Good job!

Victor Loh - 7 years, 7 months ago

Why are multiples of 13 wouldn't be coprime?

The Great - 7 years, 7 months ago

Log in to reply

Sice 104 = 13 × 8 104=13\times 8 any combination of two numbers this way z × 13 + h × 13 z\times 13 + h\times 13 such that the sum of those two numbers gives you 8 z + h = 8 z+h=8 will give you 104. Therefore y and x can't be multiples of 13

Daniel Alfaro - 7 years, 7 months ago

If x x is a multiple of 13, then y y is also a multiple of 13. Hence, x x and y y will not be coprime, since they have a common factor of 13.

Calvin Lin Staff - 7 years, 7 months ago

If gcd ( x , y ) = 1 \gcd(x, y) = 1 , then we must have gcd ( x , x + y ) = gcd ( x , 104 ) = 1 \gcd(x, x + y) = \gcd(x, 104) = 1 . And any positive x < 104 x < 104 with gcd ( x , 104 ) \gcd(x, 104) gives rise to a unique ordered pair ( x , 104 x ) (x, 104-x) . The number of pairs must be the number of x x so that gcd ( x , 104 ) = 1 \gcd(x, 104) = 1 , which is ϕ ( 104 ) = 48 \phi(104) = 48

What is gcd?

Daniel Alfaro - 7 years, 7 months ago

Log in to reply

Greatest common divisor. Or some may call it HCF, Highest common factor.

Wei Jie Tan - 7 years, 7 months ago

One of the best solution I found

Dinesh Chavan - 7 years, 7 months ago
Jan J.
Oct 21, 2013

By Euclidean algorithm ( x , 104 x ) = ( 104 y , y ) = ( 104 , y ) = ( x , 104 ) = ( x , y ) = 1 (x, 104 - x) = (104 - y,y) = (104,y) = (x,104) = (x,y) = 1 Hence x , y x,y are odd and not divisible by 13 13 , principle of inclusion-exclusion gives us 104 104 13 104 2 + 104 2 13 = 48 104 - \frac{104}{13} - \frac{104}{2} + \frac{104}{2 \cdot 13} = \boxed{48} such pairs

What is the principle of inclusion-exclusion ?

Daniel Alfaro - 7 years, 7 months ago
Israel Smith
Jan 4, 2014
  1. x + y = 104 x+y=104
  2. g c d ( x , y ) = g c d ( x , x + y ) = g c d ( x , x + y ) {gcd(x,y)=gcd(x,x+y)=gcd(x,x+y)}
  3. If g c d ( x , y ) = 1 g c d ( x , x + y ) = 1 g c d ( x , 104 ) = 1 gcd(x,y)=1 \Rightarrow gcd(x,x+y)=1 \Rightarrow gcd(x,104)=1
  4. ϕ ( 104 ) = ϕ ( 2 3 . 13 ) = ( 2 3 2 2 ) ( 13 1 ) = 48 \phi(104) = \phi(2^3.13) = (2^3-2^2) \cdot (13-1) = 48 pairs

Note: ϕ ( n ) \phi(n) - Euler's function

Nice use of the phi function...I calculated the relatively prime numbers using the common factors possible...but euler function does that by definition.......

Eddie The Head - 7 years, 4 months ago
Christopher Boo
Oct 26, 2013

As 104 is the main character, we analyse it

104 = 2 3 × 13 104=2^3\times13

First, we find all possibility of ( x , y ) (x,y) , which is

( 1 , 103 ) ( 103 , 1 ) (1,103)\ldots(103,1) total of 103 pairs

Then, we remove the pairs which contains both x x and y y are a multiple of 2

which is ( 2 ( 1 ) , 2 ( 51 ) ) ( 2 ( 51 ) , 2 ( 1 ) ) \big(2(1),2(51)\big)\ldots\big(2(51),2(1)\big) total of 51 pairs

Next, remove the pairs which contains both x x and y y are a multiple of 13

which is ( 13 ( 1 ) , 13 ( 7 ) ) ( 13 ( 7 ) , 13 ( 1 ) ) \big(13(1),13(7)\big)\ldots\big(13(7),13(1)\big) total of 7 pairs

However, we have removed more as some pairs contains both x x and y y are multiple of 2 and 13

which is ( 26 ( 1 ) , 26 ( 3 ) ) ( 26 ( 3 ) , 26 ( 1 ) ) \big(26(1),26(3)\big)\ldots\big(26(3),26(1)\big) total of 3 pairs

In conclusion, the number of ordered pairs of positive coprime integers are

103 51 7 + 3 = 48 103-51-7+3=48

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...