Let a,b,c and d be four positive integers ,
a < b < c < d
a + b + c + d = 40
You can get any positive integer up to 40, Using a,b,c and d (each integer you can use one time or zero) , and the operations { + , - } only !
For example : if d = 15 ,
● You can get 40 by : a + b + c + d
● Yoy can get 25 by : a + b + c
● You can get 10 by : a + b + c - d
So, what is : (2ad - bc)
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.
A few examples on how to apply the rules
12:
1 2 1 0 = 1 1 0 3
From right to left:
1 1 0 ⇒ 0 × 1
1 1 0 ⇒ + 1 × 3
1 1 0 ⇒ + 1 × 9
1 2 = + 3 + 9
11:
1 1 1 0 = 1 0 2 3
From right to left:
1 0 2 ⇒ − 1 × 1
Modify to 1 1 + 1 = 1 2 = 1 1 0 3
1 1 0 ⇒ + 1 × 3
1 1 0 ⇒ + 1 × 9
1 2 = − 1 + 3 + 9
15:
1 5 1 0 = 1 2 0 3
From right to left:
1 2 0 ⇒ 0 × 1
1 2 0 ⇒ − 1 × 3
Modify to 1 5 + 3 = 1 8 = 2 0 0 3
2 0 0 ⇒ − 1 × 9
Modify to 1 8 + 9 = 2 7 = 1 0 0 0 3
1 0 0 0 ⇒ + 1 × 2 7
1 5 = − 3 − 9 + 2 7
Problem Loading...
Note Loading...
Set Loading...
The key is to write the integers up to 40 in base 3:
Then, every integer can be written using sums and differences of powers of 3, so 1 , 3 , 9 , 2 7 by the following rules that are applied to each digit going from right to left
(A few examples are written in a comment to this solution)
So, ( a , b , c , d ) = ( 1 , 3 , 9 , 2 7 ) are integers that can make all integers up to 40 and they satisfy the given conditions because 1 < 3 < 9 < 2 7 and 1 + 3 + 9 + 2 7 = 4 0 .
This means that the answer is 2 ⋅ 1 ⋅ 2 7 − 3 ⋅ 9 = 2 7 .