How many strings of six lowercase letters from the English alphabet contain: i.The letter a? ii. The letters a and b? iii. The letters a and b in consecutive positions with a preceding b, with all the letters distinct? iv. The letters a and b, where a is somewhere to the left of b in the string, with all the letters distinct?
The Answer to the Question
is below this banner.
Can't find a solution anywhere?
NEED A FAST ANSWER TO ANY QUESTION OR ASSIGNMENT?
Get the Answers Now!You will get a detailed answer to your question or assignment in the shortest time possible.
Here's the Solution to this Question
i. The objective is to determine the number of strings of six lowercase letters from English alphabet contain the letter a.
Number of English alphabets is 26.
There are six lower case letters so, the number of possible ways for 6 letters is:
For the strings that does not contain a there are 25 possible ways.
The number of possible strings containing a is the total number of strings minus the number of strings that does not contains a.
Therefore, there are 64775151 number of strings of six lowercase letters from English alphabet contain the letter a.
ii. The objective is to determine the number of strings of six lowercase letters from English alphabet contains the letters a and b.
Number of English alphabets is 26.
There are six lower case letters so, the number of possible ways for 6 letters is:
For the strings that does not contain a there are 25 possible ways.
For the strings that does not contain b there are 25 possible ways.
For the strings that contains neither a nor b, there are 24 possible ways.
The possible strings that not containing a or b is:
The number of possible strings containing a and b is the total number of strings minus the number of strings that does not containing a or b.
Therefore, there are 11737502 number of strings of six lowercase letters from English alphabet contains the letters a or b.
iii. The objective is to determine the number of strings of six lowercase letters from English alphabet contain the letters a and b in consecutive positions with a preceding b and all the letters are distinct.
As the letters are consecutive, the possible strings are in the form:
Here ab can be in five locations, that is C(5,1) = 5 ways.
The order of the letters is needed, so use a permutation.
As the letters are distinct, select 4 letters from remaining 24 letters.
Thus, the possible number of strings is
Therefore, there are 1275120 number of strings of six lowercase letters from English alphabet contain the letters a and b in consecutive positions with a preceding b and all the letters are distinct.
iv. The objective is to determine the number of strings of six lowercase letters from English alphabet contains the letters a and b where a is somewhere to the left of b in the string, with all the letters are distinct.
The order for the letters a and b is needed, so use a permutation.
As two positions are to be selected, so
Half of the permutations will have a preceding b while the other half will have b preceding a.
The order of the letters is needed, so use a permutation.
As the letters are distinct, select 4 letters from remaining 24 letters.
Thus, the possible number of strings is
Therefore, there are 3825360 number of strings of six lowercase letters from English alphabet contains the letters a and b where a is somewhere to the left of b in the string, with all the letters are distinct.