Eight-bit strings starting with 1 or ending in 00
Question
Consider all strings of length over the alphabet . How many of them have first character , or last two characters , or both?
Short answer
. Inclusion–exclusion: start with , end with , and do both, so .
Adapted from QuantQuestions.io; question and answer rewritten by SelfMadeQuant.com.
See the hint and the full worked solution in the question bank (free account).
Open the worked solutionLessons behind this question
- Counting and Combinatorics
- Sample Spaces, Events, and the Probability Axioms
- Conditional Probability, Total Probability, and Bayes' Rule
Start with a free lesson: Probability Fundamentals is part of a free topic. Create a free account, no card needed, to read it in full with worked solutions.
Read it free