214k views
5 votes
How many length-6 strings over Σ = {0, 1, 2} have exactly two 2’s?

User Jack Leow
by
6.8k points

1 Answer

4 votes
Since the string has already two 2, then we will compute the whole number of strings whose length is 4, over the alphabet {0,1}:
2^4=16.
There is then 16 such strings.
User Jeremy Thake MSFT
by
7.3k points
Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.