You have 1 0 1 keys to 1 0 1 padlocks, but unfortunately they have all been mixed up!
How many times must you try at most in order to match each key to its respective padlock?
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.
Another way is by using the standard results of summation, i.e. ∑ i = 1 1 0 0 = 2 1 0 0 × 1 0 1 = 5 0 5 0
Let
N = 1
You don't need to try, the key must match the padlock,
T = 0
N = 2
You pick up a key and try a padlocks fail. The key must match the other padlock and it remains 1 key and 1 padlock, i.e. N=1
∴ T = 1 + 0
By induction, for any given N > 0 , we can prove T = i = 0 ∑ N − 1 i
For N = 1 0 1
T = i = 0 ∑ 1 0 0 i = 5 0 5 0
Problem Loading...
Note Loading...
Set Loading...
In the worst case scenario:
In order to match your first key to the correct padlock, you need at most 100 tries. In order to match your second key to the correct padlock, you need at most 99 tries. Therefore, we need to calculate the value of 100 + 99 + 98 + … + 1 + 0, which is 5050.