As a and b range over all ordered pairs of distinct coprime positive integers, how many different possibilities are there for
g cd ( ( a + b ) 1 2 , ( a − b ) 6 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.
(In the following solution, my motivation is in square brackets like [this].)
Consider a prime p dividing both a + b and a − b . We show that either no such prime exists or p = 2 . [Testing small cases, I saw that the given GCD was often a power of 2 , or 1 . ] If there is no prime dividing a + b and a − b (for example, take ( a , b ) = ( 6 , 1 ) , then the given GCD is clearly equal to 1 .
Otherwise, assume that such a p exists. Then we have { a + b a − b ≡ 0 ( m o d p ) ( 1 ) ≡ 0 ( m o d p ) ( 2 ) Adding these two congruences gives 2 a ≡ 0 ( m o d p ) . Thus, either p = 2 or a ≡ 0 ( m o d p ) . But if a ≡ 0 ( m o d p ) , then from equation ( 2 ) , we also have b ≡ 0 ( m o d p ) , contradicting the fact that g cd ( a , b ) = 1 . Hence, p = 2 .
[I had confirmed my conjecture that the GCD was always a power of 2 , but now I needed to find more information in order to bound the possible GCDs.] We now know that a + b , a − b ≡ 0 ( m o d 2 ) . Since a ≡ b ( m o d 2 ) and g cd ( a , b ) = 1 , it must be that a ≡ b ≡ 1 ( m o d 2 ) . Then, notice that the difference between a + b and a − b is 2 b , and that 2 b ≡ 2 ( m o d 4 ) . Since a + b and a − b differ by 2 b which is not 0 mod 4 , they cannot both be 0 mod 4 - one must only contain one factor of 2 . [This does it! Yes!] We have two cases:
Then, ( a + b ) 1 2 contains exactly 1 2 factors of 2 , while ( a − b ) 1 2 contains more than 1 2 factors, so the given GCD must equal 2 1 2 .
Then, ( a − b ) 6 1 contains exactly 6 1 factors of 2 . Since the number of factors of 2 in ( a + b ) 1 2 is a multiple of 1 2 , the GCD must be in the set { 2 1 2 , 2 2 4 , 2 3 6 , 2 4 8 , 2 6 0 , 2 6 1 } , where the last case occurs when ( a + b ) 1 2 has more than 6 1 factors of 2 .
It remains to find examples that show that each of these values are achievable. After that, we may conclude that the GCD can take exactly 7 values: 1 , 2 1 2 , 2 2 4 , 2 3 6 , 2 4 8 , 2 6 0 , and 2 6 1 .
Dang, I missed the word "distinct" in the question
First of all, if a prime p divides a power of a number then it divides the number itself. Therefore if p ∣ g cd ( ( a + b ) 1 2 , ( a − b ) 6 1 ) then p divides both a + b and a − b . But that means p also divides 2 a and 2 b . Since a and b are coprime, the only possible p is 2 . Moreover, 4 doesn't divide both a + b and a − b since 2 would be a common factor of a and b .
This means that the only options with non-trivial g cd are o r d ( a + b ) = k , o r d ( a − b ) = 2 with k > 0 (or the other way around but that doesn't contribute anything new to the g cd ). These option are realized by a = 2 k − 1 + 1 , b = 2 k − 1 − 1 for k > 1 and by a = 1 1 , b = 9 for k = 1 . So the possible values of the g cd are 1 , 2 1 2 , 2 2 4 , 2 3 6 , 2 4 8 , 2 6 0 , 2 6 1 and the answer is 7 .
Typo correction o r d ( a − b ) = 1 . Also, 1 1 , 9 is an incorrect pair. The correct one is e.g. 4 , 2 .
We can deal with powers of the two expressions later, and before that we will find the possible gcd of ( a + b ) , ( a − b ) .
Suppose that a positive integer k ≥ 1 divides ( a − b ) .
Keeping in mind the properties of modular arithmetic, we write:
a − b ≡ 0 ( m o d k ) ⇒ a ≡ b ( m o d k )
Thus we can express a in terms of b and k . a = t k + b , where t is some positive integer.
For k to be a solution, we must have that k ÷ ( a + b ) ( a + b ) = ( t k + 2 b )
Thus, we must have t k + 2 b ≡ 0 ( m o d k ) 2 b ≡ 0 ( m o d k ) We note that k cannot individually divide a and b (obviously exclusive of k = 1 ), otherwise it'd not be a solution, since g c d ( a , b ) = 1 . So, from the last equation we deduce that k must be 2 or 1 . Thus, the solutions that exist for the original question can only be powers of 2 .
1 is an obvious solution.
For all other solutions, both a and b must be odd. So, let a = 2 t 1 + 1 , b = 2 t 2 + 1 g c d ( ( a + b ) 1 2 , ( a − b ) 6 1 ) = g c d ( ( 2 ( t 1 + 1 + t 2 ) ) 1 2 ) , ( 2 ( t 1 + t 2 ) ) 6 1 ) . When t 1 + t 2 is odd; t 1 + t 2 + 1 is even, and vice-versa. Thus, we can have the following solutions : 1 , 2 1 2 i where 1 ≤ i ≤ 5 , 2 6 1 i.e a total of 7 solutions.
To prove that no power > 6 1 is a solution, we demonstrate the following:
First note that for a bigger solution to exist we must have that a + b be a multiple of 2 m with m > 5 .
a ≡ − b ( m o d 2 m ) Let a = p 1 ⋅ 2 m − b where p 1 is a positive integer. a − b = p 1 ⋅ 2 m − 2 b = 2 ( p 1 ⋅ 2 m − 1 − b )
Since b has to be odd, ( p 1 ⋅ 2 m − 1 − b ) is also odd. So the maximum power of 2 that we can extract from the above expression is 1 . Of course we can have integers (a,b) such that ( a − b ) 6 1 contains a power of 2 > 6 1 , but in that case, we use an analogous argument as used in this case, to conclude the same. Hence, no bigger solution exists.
Our answer: 7
No power can be > 6 1 can be proved without using the last whole bit: From the odd and even argument regarding t 1 and t 2 , we note that when t 1 + t 2 is even the max gcd can at most be 6 1 because t 1 + t 2 + 1 is odd. So even when ( a + b ) 1 2 contains a power of 2 exceeding 61, the highest possible gcd is still 2 6 1 . Similarly, when the former is odd the best we can do is 2 1 2 . Further, finding the solutions are trivial: just set b or a as 1 , and the other can be 2 x − 1 , and as such ( a + b ) 1 2 becomes 2 1 2 x .
Let d be the difference of a and b or a − b since the numbers a and b do not matter as much as their difference and their sum. Note that the g c d ≤ m i n ( ( a + b ) 1 2 , d 6 1 ) .
Clearly, when d = 1 , the g c d = 1 .
When d ≥ 2 , since a and b are distinct coprime positive integers, both a and b are odd. Hence, their sum must be even. As such, when d is odd, the g c d will be 1 . From this, we only have to consider d which are even.
Note that when d = 2 , the possible g c d are ( 2 1 ) 1 2 , ( 2 2 ) 1 2 , ( 2 3 ) 1 2 , ( 2 4 ) 1 2 , ( 2 5 ) 1 2 and 2 6 1 .
When d > 2 , d can be a power of 2 or a multiple of 2 with 2 cases as follows:
Case 1: d is a multiple of 2 but not 4 . Note that the maximum g c d still remains at 2 6 1 since d only has one factor of 2 . Hence, the possible g c d for Case 1 is similar to the above when d = 2 .
Case 2: d is a multiple of 2 n where n ≥ 2 and is an integer. Note that the g c d in this case cannot exceed ( 2 1 ) 1 2 . This is because once the g c d ≥ ( 2 2 ) 1 2 , the sum of a and b must be a multiple of 4 . Hence, the smaller number b = 2 a + b − d = 2 2 2 ( 2 2 a + b − 2 2 d ) = 2 ( 2 2 a + b − 2 2 d ) , meaning that b is even, which is false.
In conclusion the possible g c d are 1 , ( 2 1 ) 1 2 , ( 2 2 ) 1 2 , ( 2 3 ) 1 2 , ( 2 4 ) 1 2 , ( 2 5 ) 1 2 and 2 6 1 . Hence, answer is 7 .
Very sorry for not explaining clearly (and my solutions contain several mistakes). I hope the following will be a faster and clearer method to show that the g c d of a + b and a − b can only be 2 or 1 :
First, letting p be the g c d ( e , f ) , I based my following explanation on the statement that for any integer e , f , x and y , if x e + y f = c , then p ∣ c .
Second, letting g c d ( ( a + b ) , ( a − b ) ) be d , notice that ( a + b ) + ( a − b ) = 2 a and ( a + b ) − ( a − b ) = 2 b . From these 2 equations, we can conclude that d ∣ 2 a and d ∣ 2 b . Hence, d divides 2 and/or divides both a and b . However, as stated as the conditions of the question, g c d ( a , b ) = 1 . As follows, d ∣ 2 and d = 1 or 2 .
Hence, possible g c d are 1 , ( 2 1 ) 1 2 , ( 2 2 ) 1 2 , ( 2 3 ) 1 2 , ( 2 4 ) 1 2 , ( 2 5 ) 1 2 and 2 6 1 . Hence, answer is 7 .
Very sorry for my mistake once again. Please correct me if I am wrong.
d can never be 1, as a and b are coprime..
Log in to reply
Why not? a can be even and b can be 1 less and it will be odd, or the other way round. For example, a = 3 and b = 2 . In this case, both a and b are coprime. :)
Problem Loading...
Note Loading...
Set Loading...
We first observe that since ( a , b ) = 1 , we have ( a + b , a − b ) = ( a + b , 2 a ) ∣ 2 ( a + b , a ) = 2 ( a , b ) = 2 . Thus, either a + b and a − b are relatively prime (in which case so are ( a + b ) 1 2 and ( a − b ) 6 1 ), or else they have gcd exactly 2 (and thus have only the prime 2 in common). The former case occurs precisely when one of a , b is even, and the latter when a , b are both odd.
Let's examine the "both odd" case in finer detail. Let ν ( n ) denote the exponent of the largest power of 2 dividing n . While ( a − b , a + b ) = 2 implies that one of ν ( a − b ) , ν ( a + b ) must be 1, the other one must be ≥ 2 since ( a − b ) ( a + b ) = a 2 − b 2 ≡ 1 − 1 ≡ 0 ( m o d 8 ) , so that ν ( a − b ) + ν ( a + b ) ≥ 3 .
Let's assume for now that the pair [ ν ( a − b ) , ν ( a + b ) ] can actually attain any of the values deduced above, namely [ 1 , 2 ] , [ 1 , 3 ] , [ 1 , 4 ] , … and [ 2 , 1 ] , [ 3 , 1 ] , [ 4 , 1 ] , … . In that case, ( ( a + b ) 1 2 , ( a − b ) 6 1 ) will be equal to 2 c where c = min { 1 2 , 6 1 r } or c = min { 6 1 , 1 2 r } for some r ≥ 2 . The former is always equal to 1 2 , while the latter is one of 2 4 , 3 6 , 4 8 , 6 0 , 6 1 . This gives six possible values for this case, plus a seventh for the "one odd, one even" case.
It only remains to verify the assumption about attainable pairs. For [ 1 , r ] with r ≥ 2 , take a = 1 , b = 2 r − 1 ; for [ r , 1 ] with r ≥ 2 take a = 1 , b = 2 r + 1 .