Lowest Value that Breaks the Machine

In front of you, you have a machine. You can enter a positive integer from 13 13 to 22 22 into the machine, and it will give you the ordered pair ( a , b ) (a, b) such that a a isn't more than b b , a b + a + b ab+a+b is equal to your input, and the sum a + b a+b is minimal. If there is no ordered pair such that a b + a + b ab+a+b is equal to your input, the machine breaks. What is the smallest positive integer from 13 13 to 22 22 that you can input into the machine so that the machine will break?


The answer is 16.

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.

1 solution

One of the beautiful properties of 2 2

Since it is not told about the signatures of a a and b b , we assume that they are positive integers

Let the input be n n . Then we have the following possibilities :

(i) n n is odd \implies

In this case either both of a a and b b or any one of them must be odd. Let n = 2 m + 1 n=2m+1 where m m is a non-negative integer. Then an obvious combination of a a and b b is a = 1 , b = m a=1,b=m .

(ii) n n is an odd multiple of 2 \implies

In this case both a a and b b must be even. Then we continue to find a a and b b until we get n 2 m \frac{n}{2^m} odd, where m m is sum positive integer. Then we proceed as in case (i).

(iii) n n is of the form 2 m 2^m , where m m is some positive integer \implies

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 1 , which can never be expressed in the form a b + a + b ab+a+b for any positive a , b a, b ( zero is excluded ).

In this problem, the number in the given range is 2 4 = 16 2^4=\boxed {16} .

Actually, the answer will be 2 m 2^m when the given range is [ 2 m 1 + 1 , 2 m + 1 1 ] [2^{m-1}+1,2^{m+1}-1] .

In this problem, 16 16 is the only such number between 9 9 and 31 31 inclusive.

I think I've misunderstood something here. If a = 0 a=0 is allowed, then clearly any n n can be written as a b + a + b ab+a+b if we take a = 0 , b = n a=0,b=n .

If a a has to be a positive integer (which is definitely not mentioned in the problem), then there is no solution (the machine breaks) if n + 1 n+1 is prime; so 16 16 is a solution in the range, but so are 18 18 and 22 22 .

Chris Lewis - 11 months, 3 weeks ago

1 pending report

Vote up reports you agree with

×

Problem Loading...

Note Loading...

Set Loading...