Math Is Fun Forum
  Discussion about math, puzzles, games and fun.   Useful symbols: √ ∞ ≠ ≤ ≥ ≈ ⇒ ∈ Δ θ ∴ ∑ ∫ π -

Login

Username

Password

Not registered yet?

#1 2006-01-26 03:19:25

gracenalec
Novice

Offline

Door secret code...permutation

A secret code that needs to be key-ed in using only 1,2,3,4,5 button. If to open the door, u need to press three buttons, how many possible ways there to open the door? Assume tat the same code may be repeated.

For now, i have to ways in mind...it's either

5 x 5 x 5

OR

1st condition- all numbers are different = 5p3
2nd condition- 2 num r de same, 1 is diff = (3p3/2p2) x 4
3rd condition- all num r de same = (3p3/3p3)

and add all the answers together..

___________________________________________________

i'm nt sure which would b a better way..or the correct way..pls help..

#2 2006-01-26 07:29:07

MathsIsFun
Administrator

Offline

Re: Door secret code...permutation

If the code can be repeated, then the answer is 5³ as you say.

Just like there are 10³ possible decimal numbers between 000 and 999 smile


"The physicists defer only to mathematicians, and the mathematicians defer only to God ..."  - Leon M. Lederman

Board footer

Powered by FluxBB