You are given two identical balls made of a tough alloy. The hardness test fails if a ball dropped from a floor of a 120-storey building is dented upon impact. A ball can be reused in fresh drops only if it has not been dented in a previous drop. Using only these two identical balls, what is the smallest number of ball drops that will determine the highest floor from which the ball can be dropped without being damaged?
Answers
Answer:
15
Step-by-step explanation:
first iteration
drop from 15th floor
if dented
use another ball from 1 to 14
total 15 drops
second iteration
if not dented from 15th floor
drop from 29 if dented
again use another ball from 16 to 28 floor
total 15 drops
next iteration s
from 42 th , 54 , 65 , 75 , 84 , 92 , 99 , 105 , 110 , 114 , 117 , 119, 120
in this way always 15 drops are sufficient
Answer:
Minmax problem.
Step-by-step explanation:
Let's consider a -partition ( obviously) of the building. That is, . Each corresponds to the floor. We start dropping one ball from (floor ).
Two options here:
- It breaks. Then you need to use the other ball to check from the floor to the floor . Considering the worst scenario, you have dropped a ball times.
- The ball survives. You go up and then drop the ball from (floor ). Two options here again: (a) It breaks. Using the other ball you need to check from the floor to the floor under the worst scenario. These are droppings. Plus the previous drop at you have dropped a ball times. (b) The ball survives. You go up and then drop the ball from (floor ). Two options here again: (i) It breaks. Using the other ball you need to check from the floor to the floor under the worst scenario. These are droppings. Plus the two previous drops at and you have dropped a ball times. (ii) The ball survives. You go up and then drop the ball from (floor ). And so on...
In this way, the worst case is
.
So, what we need is
.
Considering that
we proceed as follows
.
Now, what natural number divides and is odd? Well, . The options are and . We have that
Clearly is the best choice. This gives us
. So