dirtyharry said...speller said...The combinations are:
2 digits - 45
4 digits - 210
5 digits - 252 (which is the max by the way)
6 digits - 210

maths nerd
You've got me. Why is there less combinations of 6 digits than there is for 5?
To understand this it might be useful to take things to the extreme -- pretend you have a 10 digit number.
That would have many combinations, you might think?
Well actually no, because 0123456789 will open the lock, and so will 9876543210.
So if you used a ten digit combination you could type in anything and it would still open the lock, because all digits are 'chosen'.
So a 0 digit combination is about the same as a 10 digit combination (only one solution).
Likewise a 1 digit combination (only one number chosen) will be about the same as a 9 digit combination (only one number not chosen) -- both of these have 10 solutions.
You can then work your way towards the middle of the range, proving that 5 numbers gives you the most secure combination.