A password consists of seven characters Count the number of
Solution
a) Over here, not only the combination but also the order plays an important role.
There are 26 alphabets and 10 numbers.
So, if all the characters are alphabets and repetition is allowed, then each of the 7 spots can be filled in 26 different ways.
So total number of ways = 26 * 26 * . . . .26 (7 times) = 267 = 8,031,810,176 ways
b)
Again assuming that repetitions are allowed, the first 4 spaces can be filled in 26 ways each and the last 3 spot in 10 ways each
So, total number of ways = 264 * 103 = 456,976,000 ways
c)
Each password containing 4 letters and 3 number exactly = 264 * 103 = 456,976,000 ways
however, those combinations can be rearranged amongst themselves to create more permutations
This can be done in 7! ways = 5040 ways
Thus, total number of password combinations = 5040 * 264 * 103 = 2.303159 * 1012 ways
Hope this helps. Ask if you have any doubts.
