There are four persons $A,B,C$ and $D$ such that $A$ has two houses whilst $B,C$ and $D$ have one house each. In how many ways can they enter these houses so that no one goes into their own house.
My Attempt: Number of Derangement amongst $5$ persons and $5$ houses is given by $D_{5}=44$. But here there are only $4$ persons. So we need to subtract that case in which the fifth person say $E$ goes into one of the $A's$ houses. After this I am not able to make any progress.
Let there be five people $A,B,C,D,E$, each owning only one house. We want the count of derangements in which $A$ doesn't go to $E$'s house.
Among the total $D_5=44$ derangements, $A$ is equally likely to go to $B,C,D,E$'s houses. So $A$ does not go to $E$'s house in $\dfrac{1}{4}D_5$ ways.
Number of ways $= D_5 - \dfrac{1}{4}D_5 = 33$
It is okay for $E$ to go to $A$'s house; it means only one of $A$'s two houses is occupied.
But to this, we need to add the case when $E$ goes to his own house and others go to different houses, since this is allowed. This is just $D_4=9$.
Hence final answer is $\boxed{33+9=42}$.