Home computickets How to calculate the number of password combinations?

How to calculate the number of password combinations?

Author

Date

Category

Suppose there are 8 characters. 3 characters are large capital, 5 lowercase. How many password combinations can be heated under these characters?

Interested in more mathematical calculation) Suppose if we have a password of three digits and only two values ​​are possible, then you can get 8 combinations. 2 ^ 3 = 8 /

000
001.
100
...

This is a simple example of course.


Answer 1, Authority 100%

26 ^ 8 * C (8,3) == 26 ^ 8 * (8! / (3! * (8 -3)!))

26 ^ 8 – the number of options without registering the register, C (8.3) – the number of ways to arrange 3 capital letters in 8 positions.

For a simple situation 2 symbol A and B and 2 positions (1 Capital):
AA, AA, AB, AB, BA, BA, BB, BB – 8 options.
Check (2 ^ 2) * (2! / (1! * 1!)) = 4 * 2 = 8 /

Programmers, Start Your Engines!

Why spend time searching for the correct question and then entering your answer when you can find it in a second? That's what CompuTicket is all about! Here you'll find thousands of questions and answers from hundreds of computer languages.

Recent questions