SOLUTION: Consider strings of length 6 which contain letters only from the set { P,Q,R,S,T} and digits from { 1,3,5,7,9}. for example TPR5Q7 is such a string.Suppose repetition allowed. A

Algebra.Com
Question 890984: Consider strings of length 6 which contain letters only from the set { P,Q,R,S,T} and digits from { 1,3,5,7,9}. for example TPR5Q7 is such a string.Suppose repetition allowed.
A) How many different strings are there?
B) How may of these strings have no P?
C) How may of these strings have at least one P?
D) How may of these strings have exactly two P's and one 7?

Answer by Edwin McCravy(20054)   (Show Source): You can put this solution on YOUR website!
Consider strings of length 6 which contain letters only from the set { P,Q,R,S,T} and digits from { 1,3,5,7,9}. for example TPR5Q7 is such a string.Suppose repetition allowed.
A) How many different strings are there?
10 ways to choose the 1st character.
10 ways to choose the 2nd character.
10 ways to choose the 3rd character.
10 ways to choose the 4th character.
10 ways to choose the 5th character.
10 ways to choose the 6th character.

106 = 1000000

B) How many of these strings have no P?
9 ways to choose the 1st character.
9 ways to choose the 2nd character.
9 ways to choose the 3rd character.
9 ways to choose the 4th character.
9 ways to choose the 5th character.
9 ways to choose the 6th character.

96 = 531441.

C) How many of these strings have at least one P?
We subtract the result of B) from the result of A):

1000000 - 531441 = 468559

D) How may of these strings have exactly two P's and one 7?
Choose the positions for the two P's in C(6,2) = 15 ways.
Choose the position for the one 7 as any of the remaining 4 ways.

That leaves 3 remaining positions to fill from the set of 8 
characters {Q,R,S,T,1,3,5,9}.

Fill the first remaining position any of these 8 ways.
Fill the second remaining position any of these 8 ways.
Fill the third remaining position any of these 8 ways.

Answer: 15×4×8×8×8 = 30720 ways.

Edwin

RELATED QUESTIONS

consider strings of length 10 which contain only letters from the set{A,E,I,O,U} and... (answered by Edwin McCravy)
consider words of length 10 which only contain letters from the set... (answered by Edwin McCravy)
How many 12-bit strings (that is, bit strings of length 12) are there which: have weight (answered by ikleyn)
Consider the set S = {1, 2, 3, 4, 5, 6, 7, 8, 12, 13, 14, 15, 16, 17, 18, 23, 24, ..., (answered by CPhill)
1) I can only use the 8 rules of inference... 1. P v Q 2.(Q • ~R) → S 3. R... (answered by jim_thompson5910)
Prove the argument: 1. p -> q 2. r \/ s 3. ~s -> ~t 4. ~q \/ s 5. ~s 6. (~p... (answered by Edwin McCravy)
4) I can only use the 8 rules of inference. 1. ~(S v R) 2. B → (S v R) 3. B v P (answered by jim_thompson5910)
The new vehicle license plates consist of 3 letters and 4 digits. From the letters in the (answered by stanbon)
T\----------/R ...\............/. ....\........../.. .....\......../... (answered by greenestamps)