Suppose we want to make a 10 character password with the following set: {a, b, c, d, e, 1, 2, 3, 4 , 5}
Characters ARE repeatable (meaning the number of total combinations should be 10^10)
- How many combinations have 4 or less digits?
I do know how to solve this by adding up the possibilities of having 0, 1, 2, 3, and 4 digits.
(5^10 + 5*(10c1)*5^9 + 5^2*(10c2)*5^8 + 5^3*(10c3)*5^7 + 5^4*(10c4)*5^6)
I'm posting this question to ask if there is a more elegant answer.
What if the password was 100 digits long, my method would be impractical...
Characters ARE repeatable (meaning the number of total combinations should be 10^10)
- How many combinations have 4 or less digits?
I do know how to solve this by adding up the possibilities of having 0, 1, 2, 3, and 4 digits.
(5^10 + 5*(10c1)*5^9 + 5^2*(10c2)*5^8 + 5^3*(10c3)*5^7 + 5^4*(10c4)*5^6)
I'm posting this question to ask if there is a more elegant answer.
What if the password was 100 digits long, my method would be impractical...