UPSC CSE 2023 CSAT · Question 56

UPSC CSE 2023 CSAT question on Permutations Combinations Flag Designed

CSAT is a qualifying paper.

A flag has to be designed with 4 horizontal strips using some or all of the colours red, green and yellow. What is the number of different ways in which this can be done so that no two adjacent stripes have the same colour?

  1. 12
  2. 18
  3. 24
  4. 36
Show answer

Answer: C. 24

Solution

  1. Colour the stripes from top to bottom.
  1. Top stripe: any of the 3 colours: 3 ways.
  1. Second stripe: any colour except the one just above it: 2 ways.
  1. Third stripe: any colour except the second stripe's colour: 2 ways.
  1. Fourth stripe: any colour except the third stripe's colour: 2 ways.
  1. Total = 3 × 2 × 2 × 2 = 24.

Check: listing all 3⁴ = 81 colourings and keeping those with no two neighbours alike also gives 24. These include patterns using only two colours (like R G R G) and patterns using all three, which the question allows ("some or all").

Why the other options are wrong

  • (a) 12: this is 3 × 2 × 2, the count for only 3 stripes.
  • (b) 18: this counts only flags using all three colours (24 − 6, removing the 6 two-colour flags like R G R G); the question allows "some or all" colours.
  • (d) 36: this is 3 × 3 × 2 × 2, wrongly giving 3 choices to a stripe that must differ from its neighbour.

Quick trick

  • First stripe k ways, every later stripe (k − 1) ways: 3 × 2³ = 24.

Remember

For n positions in a line with k colours and no two neighbours alike, the count is k × (k − 1)ⁿ⁻¹.

Hence the answer is (c).

Share
Ask Atlas (3) for similar questions
  1. 2018 · Q62 Permutations Combinations Sports Meet — Same idea: each block must differ in colour from the others, counted as k(k-1)(k-2).
  2. 2017 · Q57 Permutations Combinations Arranged Row — Same adjacency restriction: girls must not sit next to each other in a row.
  3. 2021 · Q59 Permutations Combinations Arranged Row — Similar adjacency restriction: no handshakes with two consecutive persons in a row.

← Full UPSC CSE 2023 CSAT paper · All Basic numeracy questions