(08-13-2011, 15:12)yottabyte Wrote: (08-13-2011, 14:45)pavja2 Wrote: (08-13-2011, 01:25)yottabyte Wrote: Nevermind what I said, apparently the vault has got 12 levers. That is - if my calculations are correct - 4095 different combinations. Add one more lever and you get 8191 combinations. Add more and it keeps doubling.
However, if it only had say, six levers that is only 63 combinations.
Please do correct me if I'm wrong, I'm new with the binary stuff. Herp.
I think you are off by one Yotta, whenever I do combination locks I just use 2^n with n being the number of possible combinations. So a lock with 6 switches would have 64 combinations 63 of which are incorrect and 12 would have 4096, 4095 of which will fail to open the vault.
Combination locks are really insufficient for security though. A good vault employs timers/sequencing to make it infinitely more complex. And with pistons the timer can have a variable combination that changes randomly at a designated time interval.
I knew I got something wrong. For some reason I was thinking one less. Hm....
Actually, I am a computer and I start counting at zero. That's what I got wrong. You humans
Now that I'm writing it down like this, it makes way more sense to you.
1 lever: 0 1 = 2 combinations
2 levers: 00 01 10 11 = 4 combinations
3 levers: 000 001 010 011 100 101 111 = 8 combinations
4 levers: 0000 0001 0010 0011 0100 0101 0110 0111 1000 1001 1010 1011 1100 1101 1110 1111 = 16 combinations
Oops. This is way off topic. I am so very sorry.
10101010011100101010101010010101101010100101101001110101010101011010100101010101010010110101010101101010101010110101010101010101010101001010100101001010101001010101010101011010110101001010101001010101101010010101010101001001010010101001010101010