Thank you for using the timer!
We noticed you are actually not timing your practice. Click the START button first next time you use the timer.
There are many benefits to timing your practice, including:
A door can be opened only with a security code that consists [#permalink]
14 Nov 2005, 18:53
0% (00:00) correct
0% (00:00) wrong based on 0 sessions
A door can be opened only with a security code that consists of five
buttons: 1, 2, 3, 4, 5. A code consists of pressing any one button, or
any two, or any three, or any four, or all five.
How many possible codes are there?
yup you guys are right ..i came up with the same answer.
But OA was A 31 and OE was 2^5 -1 .
I was reading this question on a math website, I guess the answer on the site is wrong. its should be 325.
I really hate all these Permutation/Compination formulas. Let think in simple logic way. As far as the combination of buttons pressed matters (I mean that combination 12 equals to combination 21) so we get only five possibilities for one button code pressed that are 1 or 2 or 3 or 4 or 5.
As for 5 button code we have - ONLY ONE possibility - all buttons pressed 1+2+3+4+5 (not 120 as permutation formula suggests).
Now lets think about 4 buttons combinations
Only five combinations.
I do not continue this boring counting, but for 2 buttons pressed we have 10 possible combinations, and for 3 buttons pressed we have 10 combinations also.
So, 5+10+10+5+1 gives us exactly 31. Sorry fot not using "rocket since approach" (permutation). I prefer old hacker's tools - paper and logic!
I see what you are saying..but what you have basically done is used combination instead of permutations, which others are using. You have made an assumption that the order of the keys entered would not make a difference, while the others have assumed otherwise.
From the question, it does not appear that the keys should be in order. But using our own knowledge we have assumed that security codes should be in order. Probably this is the trap.
Unfortunately the question is worded poorly. When I first read it, I took it to mean that you pushed the two buttons simultaneously therefore order doesn't matter which is what the question is saying (i.e. pushing 1 and 2 at the same time is the same as pushing 2 and 1 at the same time)
The only reason I thought of it this way is b/c I've used a lock like this before. I can see how this question would bring about confusion b/c most people think of pushing 1 then 2 instead of 1 and 2 at the same time.
The question should state more clearly that buttons are pushed at the same time if they want the answer to be 31.