UPSC CSAT 2023 Q5: Ways to Score Runs with 1s, 4s and 6s — Solved

In how many ways can a batsman score exactly 25 runs by scoring single runs, fours and sixes only, irrespective of the sequence of scoring shots?

  1. 18
  2. 19
  3. 20
  4. 21

Answer: (b) 19

Solution

  1. Let the batsman hit x singles, y fours and z sixes. Order does not matter, so each way is one triple (x, y, z) of whole numbers (0, 1, 2, …) with x + 4y + 6z = 25.
  2. Singles can fill any gap. Once y and z are fixed, x = 25 − 4y − 6z is fixed too. It only has to be 0 or more. So count the pairs (y, z) with 4y + 6z ≤ 25.
  3. Fix the number of sixes first, because sixes use up runs fastest. Since 6z ≤ 25, z can be 0, 1, 2, 3 or 4.
  4. z = 0: runs left = 25. 4y ≤ 25 gives y = 0 to 6 (4 × 6 = 24). That is 7 ways.
  5. z = 1: runs left = 25 − 6 = 19. 4y ≤ 19 gives y = 0 to 4 (4 × 4 = 16). That is 5 ways.
  6. z = 2: runs left = 25 − 12 = 13. 4y ≤ 13 gives y = 0 to 3 (4 × 3 = 12). That is 4 ways.
  7. z = 3: runs left = 25 − 18 = 7. 4y ≤ 7 gives y = 0 or 1. That is 2 ways.
  8. z = 4: runs left = 25 − 24 = 1. 4y ≤ 1 gives y = 0 only. That is 1 way (four sixes and one single).
  9. Check one case. z = 2, y = 3 gives x = 25 − 12 − 12 = 1, and 1 + 12 + 12 = 25. Correct.
  10. Total = 7 + 5 + 4 + 2 + 1 = 19.

Answer: 19 ways.

Option-wise explanation

  • a: incorrect — 18 is one short. You get it by dropping a single case, usually the all-singles way (25 singles, no fours or sixes) or the one way with four sixes. The question says "single runs, fours and sixes only". It does not say every shot type must appear, so zero fours and zero sixes is allowed.
  • b: correct — Fix the number of sixes (0 to 4) and count the possible fours each time: 7 + 5 + 4 + 2 + 1 = 19. Singles fill whatever is left, so every one of these pairs gives exactly one way.
  • c: incorrect — 20 is an off-by-one slip. It usually comes from allowing one extra four in some case, for example y = 7 when z = 0 (28 runs, over 25), or y = 5 when z = 1 (26 runs). The correct maximum number of fours is ⌊runs left ÷ 4⌋, not one more.
  • d: incorrect — 21 comes from repeating the off-by-one slip, for example adding 1 to the count in two of the cases. Every listed (fours, sixes) pair must leave 0 or more runs for singles, and only 19 pairs do.

How to eliminate

Do not test the options here. Count directly, because the count is short. Fix the sixes (0, 1, 2, 3, 4). For each, find the runs left (25, 19, 13, 7, 1). The number of ways is ⌊runs left ÷ 4⌋ + 1: 7, 5, 4, 2, 1. Add them: 19. The options are 18 to 21, all next to each other, so a rough guess is no use. The only risks are dropping an edge case (zero sixes, or the maximum four sixes) or allowing one four too many. Check the first and last rows before you mark the answer. About 45–75 seconds. Attempt it in the first round: it is short and safe once the table is written.

Know more

Counting ways to make a total with fixed values

To count unordered ways to reach N using pieces of value 1, p and q, solve x + p·y + q·z = N in whole numbers. The 1-value piece (singles) absorbs any remainder, so it never limits the count.

Method:

  1. Loop over the largest value (z) from 0 up to ⌊N ÷ q⌋.
  2. For each z, runs left R = N − q·z.
  3. Ways for that z = ⌊R ÷ p⌋ + 1 (the +1 counts y = 0).
  4. Add up the rows.

If there is no 1-value piece, x is no longer free. Then you must check that each remainder is exactly divisible, and many rows give 0.

Worked variant: singles, fours and sixes making exactly 15 runs.

Sixes (z) Runs left Fours possible Ways
0 15 0–3 4
1 9 0–2 3
2 3 0 1

Total = 4 + 3 + 1 = 8.

Watch for wording:

  • "irrespective of sequence" means count combinations, not orders.
  • "at least one of each" means take off 1 + p + q first, then count the rest from 0.
  • Always include the edge rows: zero of the big piece, and the maximum number of it.