If a and b are positive integers from 1 to 9 9 9 [inclusive], how many ordered pairs ( a , b ) are there such that ( a + 3 6 b ) ( b + 3 6 a ) is an integral power of 2 ?
This problem is a reworded version of a problem that appeared at the APMO.
This problem is a part of the set "Olympiads and Contests Around the World - 2". You can see rest of the problems here .
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.
Method of Infinite Descent. I think this is what @Mursalin Habib was looking for.
Log in to reply
Yes, this is it. I do have another solution though...
Log in to reply
Does the other solution involve taking out all powers of $2$ from $a$ and $b$ and then derive a contradiction?
We'd be glad to hear any hints about your solution, it might teach us all something new.
a + 3 6 b and b + 3 6 a are powers of 2 ⇒ 3 7 ( a + b ) = 2 m ( 2 n + 1 ) for some m , n
therefore 2 n ≡ − 1 ( m o d 3 7 ) ⇒ n ≥ 1 8 , however 3 7 ( a + b ) < 2 1 7
I used the idea that, if 2 m = a + 3 6 b and 2 n = b + 3 6 a , and m > = n , then, 2 n ( 2 m − n − 1 ) = 3 5 ( b − a ) Hence, we can say, m − n = 1 2 d , because the order of 2 mod 35 is 12. Continuing, ( b − a ) = 3 5 2 n ( 2 1 2 d − 1 ) As, a , b < = 9 9 9 , we can say, d = 1 Now, b − a = 2 n 1 1 7 And, b + 3 6 a = 2 n Using these two equations, we find, 3 7 a = 2 n ( − 1 1 6 ) Which is a contradiction(a is an integer). Hence, no solution.
a being an integer does not contradict anything, a being positive does. But a great solution otherwise. +1
We can see that a + 3 6 b and b + 3 6 a must both be powers of two. Hence a + 3 6 b = 2 n and b + 3 6 a = 2 m .
Adding yields 3 7 ( a + b ) = 2 n + 2 m → a + b = 3 7 2 n + 2 m . The numerator will always be even and the denominator will always be odd, so there will be no integer solutions to a and b.
In addition to Daniel's comment, there is no issue with the numerator being even and the denominator being odd. For example, 3 6 is an integer.
The best you can hope for, is that the numerator is not a multiple of 37. However, this is not true, since 2 1 9 + 2 1 is a multiple of 37.
The numerator dos not necessarily have to be even. We can have either m or n equal 0 and the numerator will be odd.
nice solution Mr. Mahul
I will skip some obvious steps, since this is a level 4 question.
We will look for x and y such that a and b are (positive) integers.
Prime factors of 1 2 9 5 are 5 , 7 , 3 7 .
Then:
7: ⟹ 3 7 ∣ ( 2 y + 2 x ) --10
Observe (powers of 2) mod 5: 1 , 2 , 4 , 3 , 1 , ⋯
Therefore:
Thus:
Let a + 3 6 b = 2 k , b + 3 6 a = 2 l . Then, 3 7 ( a + b ) = 2 l + 2 k = 2 k ( 2 l − k + 1 ) w.l.o.g.
For this to hold, we need 3 7 to divide 2 l − k + 1 . But we also need 2 l < 3 7 ⋅ 9 9 9 , so 0 ≤ l − k ≤ l ≤ 1 6 . Computing the first few powers of 2 l − k + 1 modulo 37, we can see that none give remainder 0, so there can't be any solutions.
JavaScript for(var i =1;i<1000;i++){ for(var j =1;j<1000;j++){ var val = (i+36 j) (j+36*i); var temp = val.toString(2); if( temp % 2 == 0){ var count = temp.match(/1/g); if(count == 1) console.log(temp); } } }
Problem Loading...
Note Loading...
Set Loading...
In this proof the set of positive integers will be called N . This proof uses a popular method called Proof by Infinite Descent .
Proof by contradiction: Say it is possible that ( a + 3 6 b ) ( b + 3 6 a ) = 2 x , where a , b , x ∈ N .
Notice that a + 3 6 b = 2 n and b + 3 6 a = 2 m , where n , m ∈ N .
Hence a , b are even. Let a = 2 a ′ , b = 2 b ′ , where a ′ , b ′ ∈ N .
( 2 a ′ + 3 6 ( 2 b ′ ) ) ( 2 b ′ + 3 6 ( 2 a ′ ) ) = 4 ( a ′ + 3 6 b ′ ) ( b ′ + 3 6 a ′ ) = 2 x
⟹ ( a ′ + 3 6 b ′ ) ( b ′ + 3 6 a ′ ) = 2 x − 2
Notice that ( a ′ + 3 6 b ′ ) ( b ′ + 3 6 a ′ ) ∈ N . Hence x − 2 = x ′ ∈ N .
Therefore, we have ( a ′ + 3 6 b ′ ) ( b ′ + 3 6 a ′ ) = 2 x ′ , where a ′ , b ′ , x ′ ∈ N .
But look at the beginning of the proof... this is the same problem we started with! Except the variables now carry smaller values. But they can't decrease forever, because the positive integers have a minimum value, namely 1 , which will be reached at some point.
Therefore, we have a contradiction - there are no such variables a , b , x ∈ N satisfying ( a + 3 6 b ) ( b + 3 6 a ) = 2 x . □