arthham

JEE Advanced 2019 · Permutations and Combinations

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 ______.

Answer: 3030

Watch this solved on the board The full walkthrough, written out a line at a time with narration explaining each step as it appears. Pause anywhere and ask why a line is there. Free to watch

Or read the worked solution below. Jump to the steps ↓

Written solution

5 persons in a circle, each gets one of 3 colours5 \text{ persons in a circle, each gets one of } 3 \text{ colours}

adjacent persons must have different coloured hats\text{adjacent persons must have different coloured hats}

To find: number of valid hat distributions\text{To find: number of valid hat distributions}

1. view the seats as a 5-cycle1.\ \text{view the seats as a } 5\text{-cycle} 2. fix A’s colour and count along the path2.\ \text{fix } A\text{'s colour and count along the path} 3. multiply by the 3 choices for A3.\ \text{multiply by the } 3 \text{ choices for } A Fix the colour of A:3 ways; count for one, then×3\text{Fix the colour of } A: 3 \text{ ways; count for one, then}\times 3 un=number of proper colourings with the n-th person same as Au_n = \text{number of proper colourings with the } n\text{-th person same as } A vn=number with the n-th person different from Av_n = \text{number with the } n\text{-th person different from } A u1=1,v1=0u_1 = 1,\qquad v_1 = 0 un+1=vn,vn+1=2un+vnu_{n+1}=v_n,\qquad v_{n+1}=2u_n+v_n (u2,v2)=(0,2),(u3,v3)=(2,2)(u_2,v_2)=(0,2),\qquad (u_3,v_3)=(2,2) (u4,v4)=(2,6),(u5,v5)=(6,10)(u_4,v_4)=(2,6),\qquad (u_5,v_5)=(6,10) Cycle closes with E≠A ⇒ v5=10\text{Cycle closes with } E\neq A \ \Rightarrow\ v_5 = 10 Total=3×v5=3×10=30\text{Total} = 3 \times v_5 = 3 \times 10 = 30 (k−1)n+(−1)n(k−1)=25−2=30(k-1)^n + (-1)^n(k-1) = 2^5 - 2 = 30 30\boxed{30}

More from Permutations and Combinations

All 21 Permutations and Combinations questions →