Great divisors or great powers

As a a and b b range over all ordered pairs of distinct coprime positive integers, how many different possibilities are there for

gcd ( ( a + b ) 12 , ( a b ) 61 ) ? \gcd( (a+b)^{12}, (a-b)^{61} )?


The answer is 7.

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

Erick Wong
Nov 10, 2013

We first observe that since ( a , b ) = 1 (a,b)=1 , we have ( a + b , a b ) = ( a + b , 2 a ) 2 ( a + b , a ) = 2 ( a , b ) = 2 (a+b,a-b) = (a+b,2a) \mid 2(a+b,a) = 2(a,b) = 2 . Thus, either a + b a+b and a b a-b are relatively prime (in which case so are ( a + b ) 12 (a+b)^{12} and ( a b ) 61 (a-b)^{61} ), 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 a,b is even, and the latter when a , b a,b are both odd.

Let's examine the "both odd" case in finer detail. Let ν ( n \nu(n ) denote the exponent of the largest power of 2 dividing n n . While ( a b , a + b ) = 2 (a-b,a+b) = 2 implies that one of ν ( a b ) \nu(a-b) , ν ( a + b ) \nu(a+b) must be 1, the other one must be 2 \ge 2 since ( a b ) ( a + b ) = a 2 b 2 1 1 0 ( m o d 8 ) (a-b)(a+b) = a^2 - b^2 \equiv 1-1 \equiv 0 \pmod 8 , so that ν ( a b ) + ν ( a + b ) 3 \nu(a-b) + \nu(a+b) \ge 3 .

Let's assume for now that the pair [ ν ( a b ) , ν ( a + b ) ] [\nu(a-b), \nu(a+b)] can actually attain any of the values deduced above, namely [ 1 , 2 ] , [ 1 , 3 ] , [ 1 , 4 ] , [1,2], [1,3], [1,4], \ldots and [ 2 , 1 ] , [ 3 , 1 ] , [ 4 , 1 ] , [2,1], [3,1], [4,1], \ldots . In that case, ( ( a + b ) 12 , ( a b ) 61 ) ((a+b)^{12},(a-b)^{61}) will be equal to 2 c 2^c where c = min { 12 , 61 r } c = \min\{12,61r\} or c = min { 61 , 12 r } c = \min\{61,12r\} for some r 2 r \ge 2 . The former is always equal to 12 12 , while the latter is one of 24 , 36 , 48 , 60 , 61 24,36,48,60,61 . 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 ] [1,r] with r 2 r\ge 2 , take a = 1 , b = 2 r 1 a=1 , b = 2^r-1 ; for [ r , 1 ] [r,1] with r 2 r\ge 2 take a = 1 , b = 2 r + 1 a = 1, b=2^r+1 .

Michael Tang
Nov 13, 2013

(In the following solution, my motivation is in square brackets like [this].)

Consider a prime p p dividing both a + b a+b and a b . a-b. We show that either no such prime exists or p = 2. p = 2. [Testing small cases, I saw that the given GCD was often a power of 2 , 2, or 1. 1. ] If there is no prime dividing a + b a+b and a b a-b (for example, take ( a , b ) = ( 6 , 1 ) , (a,b) = (6, 1), then the given GCD is clearly equal to 1. 1.

Otherwise, assume that such a p p exists. Then we have { a + b 0 ( m o d p ) ( 1 ) a b 0 ( m o d p ) ( 2 ) \begin{cases} a+b&\equiv0\pmod p \quad (1) \\ a-b&\equiv 0\pmod p \quad (2) \end{cases} Adding these two congruences gives 2 a 0 ( m o d p ) . 2a \equiv 0 \pmod p. Thus, either p = 2 p = 2 or a 0 ( m o d p ) . a \equiv 0 \pmod p. But if a 0 ( m o d p ) , a\equiv 0 \pmod p, then from equation ( 2 ) , (2), we also have b 0 ( m o d p ) , b \equiv 0 \pmod p, contradicting the fact that gcd ( a , b ) = 1. \gcd(a,b) = 1. Hence, p = 2. p=2.

[I had confirmed my conjecture that the GCD was always a power of 2 , 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 ) . a+b, a-b \equiv 0 \pmod 2. Since a b ( m o d 2 ) a \equiv b \pmod 2 and gcd ( a , b ) = 1 , \gcd(a,b) = 1, it must be that a b 1 ( m o d 2 ) . a\equiv b \equiv 1 \pmod 2. Then, notice that the difference between a + b a+b and a b a-b is 2 b , 2b, and that 2 b 2 ( m o d 4 ) . 2b \equiv 2 \pmod 4. Since a + b a+b and a b a-b differ by 2 b 2b which is not 0 0 mod 4 , 4, they cannot both be 0 0 mod 4 4 - one must only contain one factor of 2. 2. [This does it! Yes!] We have two cases:

  1. a + b a+b contains only one factor of 2 2

Then, ( a + b ) 12 (a+b)^{12} contains exactly 12 12 factors of 2 , 2, while ( a b ) 12 (a-b)^{12} contains more than 12 12 factors, so the given GCD must equal 2 12 . 2^{12}.

  1. a b a-b contains only one factor of 2 2

Then, ( a b ) 61 (a-b)^{61} contains exactly 61 61 factors of 2. 2. Since the number of factors of 2 2 in ( a + b ) 12 (a+b)^{12} is a multiple of 12 , 12, the GCD must be in the set { 2 12 , 2 24 , 2 36 , 2 48 , 2 60 , 2 61 } , \{2^{12}, 2^{24}, 2^{36}, 2^{48}, 2^{60}, 2^{61}\}, where the last case occurs when ( a + b ) 12 (a+b)^{12} has more than 61 61 factors of 2. 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 \boxed{7} values: 1 , 2 12 , 2 24 , 2 36 , 2 48 , 2 60 , 1, 2^{12}, 2^{24}, 2^{36}, 2^{48}, 2^{60}, and 2 61 . 2^{61}.

Dang, I missed the word "distinct" in the question

Matt McNabb - 7 years, 7 months ago
Marek Bernat
Nov 14, 2013

First of all, if a prime p p divides a power of a number then it divides the number itself. Therefore if p gcd ( ( a + b ) 12 , ( a b ) 61 ) p | \gcd((a+b)^{12}, (a-b)^{61}) then p p divides both a + b a+b and a b a-b . But that means p p also divides 2 a 2a and 2 b 2b . Since a a and b b are coprime, the only possible p p is 2 2 . Moreover, 4 4 doesn't divide both a + b a+b and a b a -b since 2 2 would be a common factor of a a and b b .

This means that the only options with non-trivial gcd \gcd are o r d ( a + b ) = k {\rm ord}(a+b) = k , o r d ( a b ) = 2 {\rm ord}(a-b) = 2 with k > 0 k > 0 (or the other way around but that doesn't contribute anything new to the gcd \gcd ). These option are realized by a = 2 k 1 + 1 a = 2^{k-1} + 1 , b = 2 k 1 1 b = 2^{k-1} - 1 for k > 1 k > 1 and by a = 11 , b = 9 a=11, b=9 for k = 1 k = 1 . So the possible values of the gcd \gcd are 1 , 2 12 , 2 24 , 2 36 , 2 48 , 2 60 , 2 61 1, 2^{12}, 2^{24}, 2^{36}, 2^{48}, 2^{60}, 2^{61} and the answer is 7 \bf 7 .

Typo correction o r d ( a b ) = 1 {\rm ord}(a-b) = 1 . Also, 11 , 9 11, 9 is an incorrect pair. The correct one is e.g. 4 , 2 4, 2 .

Marek Bernat - 7 years, 7 months ago
Aditya Parson
Nov 11, 2013

We can deal with powers of the two expressions later, and before that we will find the possible gcd of ( a + b ) , ( a b ) (a+b), (a-b) .

Suppose that a positive integer k 1 k \geq 1 divides ( a b ) (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 ) a-b \equiv 0 \pmod{k} \Rightarrow a \equiv b \pmod{k}

Thus we can express a a in terms of b b and k k . a = t k + b a=tk+b , where t t is some positive integer.

For k k to be a solution, we must have that k ÷ ( a + b ) k \div (a+b) ( a + b ) = ( t k + 2 b ) (a+b)=(tk+2b)

Thus, we must have t k + 2 b 0 ( m o d k ) tk+2b \equiv 0 \pmod{k} 2 b 0 ( m o d k ) 2b \equiv 0 \pmod{k} We note that k k cannot individually divide a a and b b (obviously exclusive of k = 1 k=1 ), otherwise it'd not be a solution, since g c d ( a , b ) = 1 gcd(a,b)=1 . So, from the last equation we deduce that k k must be 2 2 or 1 1 . Thus, the solutions that exist for the original question can only be powers of 2 2 .

1 1 is an obvious solution.

For all other solutions, both a a and b b must be odd. So, let a = 2 t 1 + 1 , b = 2 t 2 + 1 a=2t_1+1, b= 2t_2+1 g c d ( ( a + b ) 12 , ( a b ) 61 ) = g c d ( ( 2 ( t 1 + 1 + t 2 ) ) 12 ) , ( 2 ( t 1 + t 2 ) ) 61 ) gcd((a+b)^{12},(a-b)^{61})=gcd((2(t_1+1+t_2))^{12}),(2(t_1+t_2))^{61}) . When t 1 + t 2 t_1+t_2 is odd; t 1 + t 2 + 1 t_1+t_2+1 is even, and vice-versa. Thus, we can have the following solutions : 1 , 2 12 i 1,2^{12i} where 1 i 5 , 2 61 1\leq i \leq 5, 2^{61} i.e a total of 7 \boxed{7} solutions.

To prove that no power > 61 >61 is a solution, we demonstrate the following:

First note that for a bigger solution to exist we must have that a + b a+b be a multiple of 2 m 2^m with m > 5 m>5 .

a b ( m o d 2 m ) a \equiv -b \pmod{2^m} Let a = p 1 2 m b a=p_1 \cdot 2^m -b where p 1 p_1 is a positive integer. a b = p 1 2 m 2 b = 2 ( p 1 2 m 1 b ) a-b=p_1 \cdot 2^m-2b=2(p_1 \cdot 2^{m-1} -b)

Since b b has to be odd, ( p 1 2 m 1 b ) (p_1 \cdot 2^{m-1} -b) is also odd. So the maximum power of 2 2 that we can extract from the above expression is 1 1 . Of course we can have integers (a,b) such that ( a b ) 61 (a-b)^{61} contains a power of 2 > 61 2 > 61 , 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 \boxed{7}

No power can be > 61 > 61 can be proved without using the last whole bit: From the odd and even argument regarding t 1 t_1 and t 2 t_2 , we note that when t 1 + t 2 t_1+t_2 is even the max gcd can at most be 61 61 because t 1 + t 2 + 1 t_1+t_2+1 is odd. So even when ( a + b ) 12 (a+b)^{12} contains a power of 2 2 exceeding 61, the highest possible gcd is still 2 61 2^{61} . Similarly, when the former is odd the best we can do is 2 12 2^{12} . Further, finding the solutions are trivial: just set b b or a a as 1 1 , and the other can be 2 x 1 2^x-1 , and as such ( a + b ) 12 (a+b)^{12} becomes 2 12 x 2^{12x} .

Aditya Parson - 7 years, 7 months ago
Happy Melodies
Nov 10, 2013

Let d d be the difference of a a and b b or a b a-b since the numbers a a and b b do not matter as much as their difference and their sum. Note that the g c d gcd m i n ( ( a + b ) 12 , d 61 ) \leq min( (a+b)^{12}, d^{61}) .

Clearly, when d = 1 d=1 , the g c d = 1 gcd = 1 .

When d 2 d \geq 2 , since a a and b b are distinct coprime positive integers, both a a and b b are odd. Hence, their sum must be even. As such, when d d is odd, the g c d gcd will be 1 1 . From this, we only have to consider d d which are even.

Note that when d = 2 d=2 , the possible g c d gcd are ( 2 1 ) 12 , ( 2 2 ) 12 , ( 2 3 ) 12 , ( 2 4 ) 12 , ( 2 5 ) 12 (2^{1})^{12}, (2^{2})^{12},(2^{3})^{12}, (2^{4})^{12},(2^{5})^{12} and 2 61 2^{61} .

When d > 2 d >2 , d d can be a power of 2 2 or a multiple of 2 2 with 2 cases as follows:

Case 1: d d is a multiple of 2 2 but not 4 4 . Note that the maximum g c d gcd still remains at 2 61 2^{61} since d d only has one factor of 2 2 . Hence, the possible g c d gcd for Case 1 is similar to the above when d = 2 d = 2 .

Case 2: d d is a multiple of 2 n 2^{n} where n 2 n \geq 2 and is an integer. Note that the g c d gcd in this case cannot exceed ( 2 1 ) 12 (2^{1})^{12} . This is because once the g c d ( 2 2 ) 12 gcd \geq (2^{2})^{12} , the sum of a a and b b must be a multiple of 4 4 . Hence, the smaller number b = a + b d 2 = 2 2 ( a + b 2 2 d 2 2 ) 2 = 2 ( a + b 2 2 d 2 2 ) b = \frac{a+b - d}{2} = \frac{2^{2}(\frac{a+b}{2^{2}} - \frac{d}{2^{2}})}{2} = 2(\frac{a+b}{2^{2}} - \frac{d}{2^{2}}) , meaning that b b is even, which is false.

In conclusion the possible g c d gcd are 1 , ( 2 1 ) 12 , ( 2 2 ) 12 , ( 2 3 ) 12 , ( 2 4 ) 12 , ( 2 5 ) 12 1, (2^{1})^{12}, (2^{2})^{12},(2^{3})^{12}, (2^{4})^{12},(2^{5})^{12} and 2 61 2^{61} . Hence, answer is 7 \boxed 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 gcd of a + b a+b and a b a-b can only be 2 2 or 1 1 :

First, letting p p be the g c d ( e , f ) gcd (e,f) , I based my following explanation on the statement that for any integer e e , f f , x x and y y , if x e + y f = c xe + yf = c , then p c p \mid c .

Second, letting g c d ( ( a + b ) , ( a b ) ) gcd ((a+b), (a-b)) be d d , notice that ( a + b ) + ( a b ) = 2 a (a+b)+(a-b) = 2a and ( a + b ) ( a b ) = 2 b (a+b) - (a-b) = 2b . From these 2 equations, we can conclude that d 2 a d \mid 2a and d 2 b d \mid 2b . Hence, d d divides 2 2 and/or divides both a a and b b . However, as stated as the conditions of the question, g c d ( a , b ) = 1 gcd (a,b) = 1 . As follows, d 2 d \mid 2 and d = 1 d = 1 or 2 2 .

Hence, possible g c d gcd are 1 , ( 2 1 ) 12 , ( 2 2 ) 12 , ( 2 3 ) 12 , ( 2 4 ) 12 , ( 2 5 ) 12 1, (2^{1})^{12}, (2^{2})^{12},(2^{3})^{12}, (2^{4})^{12},(2^{5})^{12} and 2 61 2^{61} . Hence, answer is 7 \boxed 7 .

Very sorry for my mistake once again. Please correct me if I am wrong.

Happy Melodies - 7 years, 7 months ago

d can never be 1, as a and b are coprime..

Mahbub Alam - 7 years, 7 months ago

Log in to reply

Why not? a a can be even and b b can be 1 less and it will be odd, or the other way round. For example, a = 3 a = 3 and b = 2 b = 2 . In this case, both a a and b b are coprime. :)

Happy Melodies - 7 years, 7 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...