1

A computer password requires you to use exactly 1 uppercase, exactly 3 lowercases, 3 digits and 2 special charecters(given that there are 33 special charecters that can be used)(every thing can be repeated) . In how many ways you can create password?

My attempt: 1 uppercase can be choosen by ${26 \choose 1}$ ways, 3 lowercases can be choosen by ${26\choose 1}$$\times {26\choose 1}$$\times {26\choose 1}$ ways, 3 digits can be choosen by ${10\choose 1}$$\times {10\choose 1}$$\times {10\choose 1}$ways and 2 special charecters can be choosen by ${33\choose 1}$$\times {33\choose 1}$ ways. But I am stucking for further progress. Please help me. Thanks in advance

2 Answers2

2

You want a configuration like $\,U\,L\,L\,L\,D\,D\,D\,S\,S\,$ and you already know how many ways there are to choose for this configuration.

Now configurations can be permuted in $\dfrac{9!}{1!3!3!2!}$ ways, just multiply

1

As the repetition is allowed, first find number of ways to choose positions of $1U, 3L, 3D$ and $2S$ ($U$ - uppercase, $L$ - lowercase, $D$ - digit, $S$ - special character).

That can be done in $\displaystyle 9 \cdot {8 \choose 3} \cdot {5 \choose 3}$ ways.

Now uppercase can be chosen in $26$ ways, lowercase can be chosen in $26^3$ ways, digits can be chosen in $10^3$ ways and special characters can be chosen in $33^2$ ways.

So total number of passwords of length $9$ that can be made

$ = \displaystyle 9 \cdot {8 \choose 3} \cdot {5 \choose 3} \cdot 26^4 \cdot 10^3 \cdot 33^2$

Math Lover
  • 51,819