Clear Notion Academy

Permutations and Combinations (Beyond Advanced) Practice: In how many ways can the eight digits 1,1,2,2,3,3,4,4 be arranged in a row so that no two…

Question

In how many ways can the eight digits 1,1,2,2,3,3,4,41,1,2,2,3,3,4,4 be arranged in a row so that no two equal digits are next to each other?

Options

  1. 10801080
  2. 13441344
  3. 840840
  4. 864864

Answer

Correct option: D

Hint

Let AiA_i be the arrangements in which the two copies of digit ii are adjacent; count intersections by gluing.

Solution

Total arrangements: 8!24=2520\dfrac{8!}{2^4}=2520. One digit glued (4 choices of digit): the block is a single object, so 7!23=630\dfrac{7!}{2^3}=630 arrangements: S1=4⋅630=2520S_1=4\cdot630=2520. Two glued: 6!22=180\dfrac{6!}{2^2}=180 each, (42)=6\binom42=6 choices: S2=1080S_2=1080. Three glued: 5!2=60\dfrac{5!}{2}=60 each, 44 choices: S3=240S_3=240. All four glued: 4!=244!=24. Inclusion-exclusion: 2520−2520+1080−240+24=8642520-2520+1080-240+24=864. Stopping at S2S_2 gives 10801080; using +S3+S_3 instead of −S3-S_3 gives 13441344.

More questions from Permutations and Combinations (Beyond Advanced) Practice

Practise the full set: Permutations and Combinations — Beyond Advanced