In front of you, you have a machine. You can enter a positive integer from to into the machine, and it will give you the ordered pair such that isn't more than , is equal to your input, and the sum is minimal. If there is no ordered pair such that is equal to your input, the machine breaks. What is the smallest positive integer from to that you can input into the machine so that the machine will break?
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.
One of the beautiful properties of 2
Since it is not told about the signatures of a and b , we assume that they are positive integers
Let the input be n . Then we have the following possibilities :
(i) n is odd ⟹
In this case either both of a and b or any one of them must be odd. Let n = 2 m + 1 where m is a non-negative integer. Then an obvious combination of a and b is a = 1 , b = m .
(ii) n is an odd multiple of 2 ⟹
In this case both a and b must be even. Then we continue to find a and b until we get 2 m n odd, where m is sum positive integer. Then we proceed as in case (i).
(iii) n is of the form 2 m , where m is some positive integer ⟹
In this case we repeat the procedure in case (ii) until we reach an odd input. But this terminal value of the input is 1 , which can never be expressed in the form a b + a + b for any positive a , b ( zero is excluded ).
In this problem, the number in the given range is 2 4 = 1 6 .
Actually, the answer will be 2 m when the given range is [ 2 m − 1 + 1 , 2 m + 1 − 1 ] .
In this problem, 1 6 is the only such number between 9 and 3 1 inclusive.