In how many ways can we permute the digits $2,3,4,5,2,3,4,5$ if identical digit must not be adjacent?
I tried this by first taking total permutation as $\dfrac{8!}{2^4}$
Now $n_1$ as $22$ or $33$ or $44$ or $55$ occurs differently
$N_1 = \left(^7C_1\times \dfrac{7!}{8}\right)$
And $n_2 = \left(^4C_1 \times 4!\right)$
Using the inclusion-exclusion principle I got:
$\dfrac{8!}{16}-\left(^7C_1\times\dfrac{7!}{8}\right)+\left(^4C_1\times4!\right)$
But answer was wrong
Please help me solve the question
This question is from combinatorics and helpful for RMO