How many strings of six lowercase letters from the English alphabet contain 6(a) the letter a? 6(b) the letters a and b, where a is somewhere to the left of b in the string, with all the letters distinct

hercegvm

hercegvm

Open question

2022-08-17

How many strings of six lowercase letters from the English alphabet contain 6(a) the letter a? 6(b) the letters a and b, where a is somewhere to the left of b in the string, with all the letters distinct

Answer & Explanation

ce1ret3i

ce1ret3i

Beginner2022-08-18Added 12 answers

Step 1
6.
How many strings of six lowercase letters from the English alphabet contain 6
To find:
(a) the letter a?
(b) the letters a and b, where a is somewhere to the left of b in the string, with all the letters distinct?
Step 2
There are 26 letters in English alphabets.
(a) We have to find the number of strings of six lowercase letters from the English alphabet contain 6 with letter a.
Total number of alphabets =26.
There are six lower cases. Hence, the total number of ways for 6 letters is
262626262626=266
If the string does not contain a then total number of possible ways is
252525252525=256
Now, the total number of string containing a letter a is (266256)=6,47,75,151.
(b) In a letter of string, a and b lies with consecutive digits and hence they are fixed.
Now, the remaining letters are (262)=24 and remaining lower case is 4.
Number of possible string will be
ab____
_ab___
__ab__
___ab_
____ab
Hence, the possible strings of ab type is C(5,1)=5!1!4!=5.
Number of possible cases =24P4
=24!(244)!
=24!20!
=24×23×22×21
=255024
Hence, total possible strings with ab is (5×255024)=12,72,120.
Giltrapsx

Giltrapsx

Beginner2022-08-19Added 2 answers

(a) Possible strings (total)
For each of the 6 letters, there are 26 possible ways.
Use the product rule:
262626262626=266
Possible strings not containing a
For each of the 6 letters, there are 25 possible ways (since a is not a possibility).
Use the product rule:
252525252525=256
Possible strings containing a
The number of possible strings containing a is then the total number of possible strings decreased by the number of strings not containing a:
266256=64,775,151
(b) Possible strings not containing b
For each of the 6 letters, there are 25 possible ways (since b is not a possibility).
Use the product rule:
252525252525=256
Possible strings not containing a nor b
For each of the 6 letters, there are 24 possible ways (since a and b are not a possibility).
Use the product rule:
242424242424=246
Possible strings not containing (a and b)
Use the subtract rule:
256+256246=2256246
Possible strings containing a and b
The number of possible strings containing a and b is then the total number of possible strings decreased by the number of strings not containing a nor b:
266(2256246)=2662256+246=11,737,502

Do you have a similar question?

Recalculate according to your conditions!

New Questions in Discrete math

Ask your question.
Get an expert answer.

Let our experts help you. Answer in as fast as 15 minutes.

Didn't find what you were looking for?