Question #248033
How many strings of length 4 on the alphabet {A,B,C,D} do not contain AB as a substring ?
1
Expert's answer
2021-10-11T15:10:55-0400

How many strings of length 4 can be generated from the letters {A,B,C,D} ?


44=2564^4=256

If the element ABAB is on the first place


42=164^2=16

If the element ABAB is on the second place


42=164^2=16

If the element ABAB is on the third place


42=164^2=16

How many strings of length 4 on the alphabet {A,B,C,D} do not contain AB as a substring ?


256(16+16+16)=208256-(16+16+16)=208


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!
LATEST TUTORIALS
APPROVED BY CLIENTS