Skip to content

GATE CS 2020 Q42 — Combinatorics: Counting, Recurrence Relations, Generating Functions

Explain with AI
The number of permutations of the characters in LILAC so that no character appears in its original position, if the two L’s are indistinguishable, is ______.
View worked solution

Answer: 12

Let the original positions of the characters in L I L A C be numbered 1,2,3,4,51, 2, 3, 4, 5 respectively:

  • L is at positions 11 and 33.
  • I is at position 22.
  • A is at position 44.
  • C is at position 55.

Since no character can appear in its original position, the two indistinguishable L's cannot be placed at positions 11 or 33. Therefore, they must occupy two of the remaining positions: 2,4,2, 4, or 55. This gives us (32)=3\binom{3}{2} = 3 cases:

  1. L's are placed at positions 22 and 44:

    The remaining positions to fill are {1,3,5}\{1, 3, 5\} using the characters {I,A,C}\{I, A, C\}. Since CC cannot be at its original position 55, it must go to position 11 or 33 (22 choices). The remaining two characters can be arranged in the remaining two positions in 2!=22! = 2 ways.
    Total ways = 2×2=42 \times 2 = 4.

  2. L's are placed at positions 22 and 55:

    The remaining positions to fill are {1,3,4}\{1, 3, 4\} using the characters {I,A,C}\{I, A, C\}. Since AA cannot be at its original position 44, it must go to position 11 or 33 (22 choices). The remaining two characters can be arranged in 2!=22! = 2 ways.
    Total ways = 2×2=42 \times 2 = 4.

  3. L's are placed at positions 44 and 55:

    The remaining positions to fill are {1,2,3}\{1, 2, 3\} using the characters {I,A,C}\{I, A, C\}. Since II cannot be at its original position 22, it must go to position 11 or 33 (22 choices). The remaining two characters can be arranged in 2!=22! = 2 ways.
    Total ways = 2×2=42 \times 2 = 4.

Summing the possibilities from all three mutually exclusive cases, we get:

4+4+4=124 + 4 + 4 = 12

Free practice · Your answers on this page are not saved.

Published
Report a correction
Keep exploringMore Combinatorics: Counting, Recurrence Relations, Generating Functions questions