UPSC CSAT 2026 Q18: Repeating Letter Pattern with Blanks — Solved

A pattern formed by two characters a and b is repeated more than once in the following string:

× b × a × a × × a × a × b a b

What is × × in the 7th and 8th positions from the left in the above string?

  1. aa
  2. ab
  3. ba
  4. bb

Answer: (d) bb

Solution

  1. Number the 15 places from the left. Blanks are ×.
Position 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Letter × b × a × a × × a × a × b a b
  1. The pattern repeats whole, so its length should divide 15. The lengths to test are 3 and 5. (Length 1 or 15 would not be a pattern repeated more than once.)

  2. Test length 3. Positions 1, 4, 7, 10, 13 must hold the same letter. Position 4 is a and position 13 is b. They clash, so length 3 fails.

  3. Test length 5. Split the string into three blocks of 5: - Block 1 (positions 1–5): × b × a × - Block 2 (positions 6–10): a × × a × - Block 3 (positions 11–15): a × b a b

  4. Stack the blocks and fill each column from whichever block shows a letter: - Column 1 (positions 1, 6, 11): ×, a, a → a - Column 2 (positions 2, 7, 12): b, ×, × → b - Column 3 (positions 3, 8, 13): ×, ×, b → b - Column 4 (positions 4, 9, 14): a, a, a → a - Column 5 (positions 5, 10, 15): ×, ×, b → b No column has a clash. The repeating unit is abbab.

  5. Full string: abbab abbab abbab. Check it against every given letter: position 2 = b, 4 = a, 6 = a, 9 = a, 11 = a, 13 = b, 14 = a, 15 = b. All match.

  6. Position 7 is column 2 of block 2, the same as position 2, which is b. Position 8 is column 3 of block 2, the same as position 13, which is b.

  7. For completeness, lengths 2, 4, 6 and 7 also fail. Length 2: positions 4 (a) and 2 (b) must match. Length 4: positions 9 (a) and 13 (b) must match. Length 6: positions 2 (b) and 14 (a) must match. Length 7: positions 2 (b) and 9 (a) must match. So length 5 is the only one that works.

Answer: the 7th and 8th positions are b and b, i.e. bb.

Option-wise explanation

  • a: incorrect — This needs a in position 7. With the period-5 pattern, position 7 matches position 2, which is given as b. Both letters are wrong.
  • b: incorrect — Position 7 would be a, but it matches position 2 (b). Position 8 is right. The trap is reading the visible 'a × ×' around positions 6–8 as alternating a/b instead of fixing the period first.
  • c: incorrect — Position 7 = b is right, but position 8 matches position 13 in the period-5 pattern, and that is b, not a. This is the slip you make if you only find one of the two blanks.
  • d: correct — The repeating unit is abbab (length 5). Position 7 matches position 2 = b, and position 8 matches position 13 = b. So the pair is bb.

How to eliminate

Count the characters: 15. A whole pattern repeated more than once must have length 3 or 5. Length 3 breaks at once: position 4 is a and position 13 is b, but they would need to match. So the period is 5. Now each blank just copies the letter 5 places away. Position 7 = position 2 = b, which removes aa and ab. Position 8 = position 13 = b, which removes ba. You never need the full pattern. About 45–60 seconds once you count the length. Attempt it first: it is quick and certain.

Know more

Fill-the-blanks letter series: find the period first.

If a unit of length p repeats, then position n and position n + p always hold the same letter. So every blank copies a known letter that sits p places away.

Method:

  1. Count the total length L.
  2. List the possible periods. If the pattern repeats whole, they are the divisors of L, excluding 1 and L.
  3. For each period, group the positions by remainder (n mod p). Reject the period if any group has two different letters.
  4. The surviving period fills every blank.
L Periods to test
12 2, 3, 4, 6
15 3, 5
16 2, 4, 8
18 2, 3, 6, 9
20 2, 4, 5, 10

Worked variant. String: a × c × b × a b × × b c (L = 12). Period 2: positions 1 (a) and 3 (c) clash. Period 3: positions 1 (a) and 7 (a) match, but position 3 (c) and position 9 (×) are fine while position 5 (b) and position 8 (b) match... check group 1: positions 1, 4, 7, 10 = a, ×, a, × → fine; group 2: positions 2, 5, 8, 11 = ×, b, b, b → fine; group 3: positions 3, 6, 9, 12 = c, ×, ×, c → fine. Unit = abc. So the blanks read b, c, b, c, a, a, giving abcabcabcabc.

Tip: test the smallest periods first, and look for a clash between two given letters. One clash rejects that period.