Sign in
12thPass logo
New chatPYQ LibraryDoubtsRank report
Sign in to see Recents

Your guest activity stays on this device

Sign in to save progress →
Sign in

Permutations and Combinations question

2019 · Shift 2 · Q30
Guest · filters and generic practice availableBrowsing as a guest · PYQ filters and generic practice are available. Sign in only for personalised features and saved progress.
  1. PYQ Library
  2. /JEE Advanced
  3. /Mathematics
  4. /Permutations and Combinations
  5. /2019 · Shift 2 · Q30

Permutations and Combinations question

2019 · Shift 2 · Q30

JEE AdvancedMathematicsPermutations and CombinationsNumerical+3 / −1
Five persons A, B, C, D and E are seated in a circular arrangement. If each of them is given a hat of one of the three colours red, blue and green, then the number of ways of distributing the hats such that the persons seated in adjacent seats get different coloured hats is ............
Numerical answer
View written solutionFree

Correct answer: 30

  1. Interpretation of the problem

We have 555 distinct persons A,B,C,D,EA,B,C,D,EA,B,C,D,E seated in a fixed circular arrangement.

Each person is to be given a hat of one of 333 colours: red, blue, green.

We must count the number of colourings of these 555 seats such that adjacent persons have different colours.

Since the seating arrangement is already fixed, we only need to count valid colour assignments on a cycle of length 555 using 333 colours.


  1. Model as colouring a cycle C5C_5C5​

Let the seats around the circle be in order: A→B→C→D→E→AA \to B \to C \to D \to E \to AA→B→C→D→E→A

We want the number of proper colourings of this cycle with 333 colours.

A standard result for colouring a cycle of length nnn with kkk colours is: N=(k−1)n+(−1)n(k−1)N=(k-1)^n+(-1)^n(k-1)N=(k−1)n+(−1)n(k−1)

Here, n=5n=5n=5 and k=3k=3k=3. So, N=(3−1)5+(−1)5(3−1)N=(3-1)^5+(-1)^5(3-1)N=(3−1)5+(−1)5(3−1) N=25−2N=2^5-2N=25−2 N=32−2=30N=32-2=30N=32−2=30

So the required number is: 30\boxed{30}30​


  1. Direct counting verification

We can also verify this without using the formula.

  • Choose colour of AAA: 333 ways.
  • Choose colour of BBB different from AAA: 222 ways.
  • Choose colour of CCC different from BBB: 222 ways.
  • Choose colour of DDD different from CCC: 222 ways.

Now choose colour of EEE such that it differs from both DDD and AAA.

So we count according to whether D=AD=AD=A or D≠AD\ne AD=A.

Case 1: D=AD=AD=A

Fix AAA.

  • BBB: 222 choices.
  • CCC: 222 choices.
  • For DDD to equal AAA and differ from CCC, this happens exactly when CCC is the third colour not equal to AAA or BBB.
  • Then EEE must differ from both D(=A)D(=A)D(=A) and AAA, so it can be any of the other 222 colours except AAA, but must also differ from DDD which is same as AAA; thus EEE has 222 choices.

For fixed A,BA,BA,B, this gives 1⋅2=21\cdot 2=21⋅2=2 valid completions.

Case 2: D≠AD\ne AD=A

Then since EEE must differ from both DDD and AAA, and there are only 333 colours, EEE is forced to be the third colour. So EEE has 111 choice.

For fixed A,BA,BA,B, among the 222 choices of CCC, one leads to D=AD=AD=A and one leads to D≠AD\ne AD=A. Hence this case contributes 111 valid completion.

So for fixed A,BA,BA,B, total valid completions: 2+1=32+1=32+1=3

Thus total number: 3×2×3=183 \times 2 \times 3 = 183×2×3=18

This seems inconsistent, so let us carefully correct the direct counting.


  1. Correct direct counting

Fix colour of AAA: 333 ways. Fix colour of BBB: 222 ways. Fix colour of CCC: 222 ways. Fix colour of DDD: 222 ways.

So along the path A−B−C−D−EA-B-C-D-EA−B−C−D−E, before checking EEE, there are: 3⋅2⋅2⋅2=243\cdot 2\cdot 2\cdot 2=243⋅2⋅2⋅2=24 assignments for A,B,C,DA,B,C,DA,B,C,D.

Now count how many of these allow EEE.

For each colouring of A,B,C,DA,B,C,DA,B,C,D:

  • If A=DA=DA=D, then EEE can be any colour different from AAA, so 222 choices.
  • If A≠DA\ne DA=D, then EEE must be different from both, so 111 choice.

Thus we need counts of assignments of A,B,C,DA,B,C,DA,B,C,D with A=DA=DA=D and with A≠DA\ne DA=D.

Fix AAA.

  • BBB: 222 ways.
  • CCC: 222 ways.
  • DDD: must differ from CCC.

For fixed A,BA,BA,B:

  • If C=AC=AC=A, then DDD has 222 choices, neither equal to AAA necessarily.
  • If C≠AC\ne AC=A, then among the 222 choices for DDD (excluding CCC), exactly one is AAA and one is the third colour.

Let us list for fixed AAA.

Choose BBB in 222 ways.

For each fixed BBB:

  • CCC can be AAA or the third colour.

If C=AC=AC=A:

  • D≠AD\ne AD=A, so DDD has 222 choices, both with D≠AD\ne AD=A.

If CCC is the third colour:

  • DDD has 222 choices: one is AAA, one is BBB.
  • So one gives D=AD=AD=A, one gives D≠AD\ne AD=A.

Hence for fixed A,BA,BA,B:

  • Number of assignments with D=AD=AD=A: 111
  • Number with D≠AD\ne AD=A: 333

Therefore for fixed AAA:

  • Since BBB has 222 choices, #(D=A)=2,#(D≠A)=6\#(D=A)=2, \qquad \#(D\ne A)=6#(D=A)=2,#(D=A)=6

Now including EEE:

  • From D=AD=AD=A: each gives 222 choices for EEE.
  • From D≠AD\ne AD=A: each gives 111 choice for EEE.

So for fixed AAA: 2⋅2+6⋅1=102\cdot 2 + 6\cdot 1 = 102⋅2+6⋅1=10

Finally, AAA has 333 choices, so total: 3⋅10=303\cdot 10 = 303⋅10=30

Thus the required number is: 30\boxed{30}30​


  1. Comparison with stored answer

Stored correct answer = 303030.

Our derived answer = 303030.

So the stored answer is correct.

PreviousNext

More from Permutations and Combinations

  • The number of 5 digit numbers which are divisible by 4, with digits from the set {1, 2, 3, 4, 5} and the repetition of digits is allowed, is .................2018 · Numerical
  • In a high school, a committee has to be formed from a group of 6 boys M1, M2, M3, M4, M5, M6 and 5 girls G1, G2, G3, G4, G5. (i) Let α1 be the total number of ways in which the committee can be formed such that the committee has 5… Includes table2018 · MCQ
  • Words of length 10 are formed using the letters A, B, C, D, E, F, G, H, I, J. Let x be the number of such words where no letter is repeated; and let y be the number of such words where exactly one letter is repeated twice and no other…2017 · Numerical
  • A debate club consists of 6 girls and 4 boys. A team of 4 members is to be select from this club including the selection of a captain (from among these 4 members ) for the team. If the team has to include at most one boy, then the number…2016 · MCQ
  • Let n be the number of ways in which 5 boys and 5 girls can stand in a queue in such a way that all the girls stand consecutively in the queue. Let m be the number of ways in which 5 boys and 5 girls can stand in a queue in such a way that…2015 · Numerical
  • Let n1​<n2​<n3​<n4​<n5​ be positive integers such that n1​+n2​+n3​+n4​+n5​= 20. Then the number of such destinct arrangements (n1​,n2​,n3​,n4​,n5​)…2014 · Numerical
  • Let n≥2 be an integer. Take n distinct points on a circle and join each pair of points by a line segment. Colour the line segment joining every pair of adjacent points by blue and the rest by red. If the number of red and blue line…2014 · Numerical
  • Six cards and six envelopes are numbered 1, 2, 3, 4, 5, 6 and cards are to be placed in envelopes so that each envelope contains exactly one card and no card is placed in the envelope bearing the same number and moreover the card numbered…2014 · MCQ