How many ordered pairs of positive coprime integers ( x , y ) satisfy x + y = 1 0 4 ?
This problem is posed by Michael T .
Details and assumptions
For an ordered pair of integers ( a , b ) , the order of the integers matter. The ordered pair ( 1 , 2 ) is different from the ordered pair ( 2 , 1 ) .
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.
Nice solution and explanation!
This is also basically Euler's totient function.
Good job!
Why are multiples of 13 wouldn't be coprime?
Log in to reply
Sice 1 0 4 = 1 3 × 8 any combination of two numbers this way z × 1 3 + h × 1 3 such that the sum of those two numbers gives you 8 z + h = 8 will give you 104. Therefore y and x can't be multiples of 13
If x is a multiple of 13, then y is also a multiple of 13. Hence, x and y will not be coprime, since they have a common factor of 13.
If g cd ( x , y ) = 1 , then we must have g cd ( x , x + y ) = g cd ( x , 1 0 4 ) = 1 . And any positive x < 1 0 4 with g cd ( x , 1 0 4 ) gives rise to a unique ordered pair ( x , 1 0 4 − x ) . The number of pairs must be the number of x so that g cd ( x , 1 0 4 ) = 1 , which is ϕ ( 1 0 4 ) = 4 8
What is gcd?
Log in to reply
Greatest common divisor. Or some may call it HCF, Highest common factor.
One of the best solution I found
By Euclidean algorithm ( x , 1 0 4 − x ) = ( 1 0 4 − y , y ) = ( 1 0 4 , y ) = ( x , 1 0 4 ) = ( x , y ) = 1 Hence x , y are odd and not divisible by 1 3 , principle of inclusion-exclusion gives us 1 0 4 − 1 3 1 0 4 − 2 1 0 4 + 2 ⋅ 1 3 1 0 4 = 4 8 such pairs
What is the principle of inclusion-exclusion ?
Note: ϕ ( 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.......
As 104 is the main character, we analyse it
1 0 4 = 2 3 × 1 3
First, we find all possibility of ( x , y ) , which is
( 1 , 1 0 3 ) … ( 1 0 3 , 1 ) total of 103 pairs
Then, we remove the pairs which contains both x and y are a multiple of 2
which is ( 2 ( 1 ) , 2 ( 5 1 ) ) … ( 2 ( 5 1 ) , 2 ( 1 ) ) total of 51 pairs
Next, remove the pairs which contains both x and y are a multiple of 13
which is ( 1 3 ( 1 ) , 1 3 ( 7 ) ) … ( 1 3 ( 7 ) , 1 3 ( 1 ) ) total of 7 pairs
However, we have removed more as some pairs contains both x and y are multiple of 2 and 13
which is ( 2 6 ( 1 ) , 2 6 ( 3 ) ) … ( 2 6 ( 3 ) , 2 6 ( 1 ) ) total of 3 pairs
In conclusion, the number of ordered pairs of positive coprime integers are
1 0 3 − 5 1 − 7 + 3 = 4 8
Problem Loading...
Note Loading...
Set Loading...
1 0 4 is even, so pairs of even numbers add up to it. These can be eliminated from the 1 0 3 possible pairs of positive integers that would work. There are 5 1 even pairs, from 2 + 1 0 2 to 1 0 2 + 2 . Other pairs that would not be coprime are odd multiples of 1 3 . These are 1 3 + 9 1 , 3 9 + 6 5 , 6 5 + 3 9 , and 9 1 + 1 3 . This is 4 pairs. 1 0 3 − 5 1 − 4 = 4 8 .