Imagine a lock with a 4 digit passcode:
Now imagine that you have some fancy spy technology and you can put on some goggles and see which keys have been pressed, but not the order, or number of times they were pressed. If you see this, how many possible passcodes are there?
Homework:
What if two keys have been pressed? Three?
Now imagine that you have some fancy spy technology and you can put on some goggles and see which keys have been pressed, but not the order, or number of times they were pressed. If you see this, how many possible passcodes are there?
Homework:
What if two keys have been pressed? Three?
Comments
2 digits: 2^4-2
3 digits: 3^4-3-3*14
4 digits: 4*3*2*1 = 24