Question: A family lines up for a photograph. In each of the following situations, how many ways are there for the family to line up so that the mother is next to at least one of her daughters?
The family consists of two parents, three daughters and four sons.
So I tried to solve this using the Inclusion-Exclusion principle but got stuck at the very end step. The formula I used is: |A ∪ B ∪ C| = |A| + |B| + |C| - |A ∩ B| - |B ∩ C| - |A ∩ C| + |A ∩ B ∩ C|
Ways for mom to be next to first daughter + Ways for mom to be next to second daughter + Ways for mom to be next to third daughter - Ways for mom to be next to first and second daughter - Ways for mom to be next to first and third daughter - Ways for mom to be next to second and third daughter + Ways for mom to the next to all 3 daughters
I was able to calculate everything except for |A ∩ B ∩ C|. How do we arrange the mom and 3 daughters in this case? Thank you for your help.
Edit: I have $(2⋅8!)$ ways for the mom to be next to one daughter. There are $3$ daughters so we have $3⋅2⋅8!$ ways. And then $(2⋅7!)$ ways for each time a mom is between any 2 daughters, that makes $(3⋅2⋅7!)$ in total. Looks like there's $0$ ways for the mom to be next to all $3$ daughters, so I suppose the answer is $(3⋅2⋅8!) - (3⋅2⋅7!)$.
Maybe it is easier to construct the ways of arranging where no daughter is beside the mother:
All together
$$\color{blue}{9! - 6! \cdot \binom 73 \cdot 3!}$$