Is my solution right refarding this question?
How many bitstrings of length 77 are there that start with 010 (i.e, have 010 at position 1, 2, and 3) or have 101 at positions 2,3, and 4, or have 010 at positions 3, 4, and 5?
the answeer i got is |AuBuC| = |A| + |B| + |C| -|A and B| - |A and C| - | B and C| + |A and B and C|
= 2^74 + 2^74 + 2^74 - 2^71 - 2^71 - 2^71 + 2^68
Ignoring the bits 6 to 77, you have
So in total 8.2^72 = 2^75 solutions.
By inclusion/exclusion, (4 + 4 + 4 - 2 - 1 - 2 + 1).2^72 = 2^75.