UPSC CSAT 2023 Q26: Maximum Product of Sums of Digits — Solved

If p, q, r and s are distinct single digit positive numbers, then what is the greatest value of (p + q)(r + s)?

  1. 230
  2. 225
  3. 224
  4. 221

Answer: (b) 225

Solution

  1. Read the conditions. p, q, r and s are single-digit positive numbers, so each one comes from 1, 2, 3, …, 9. They are distinct, so no digit can be used twice.

  2. Name the two brackets. Let A = p + q and B = r + s. We want the largest possible value of A × B.

  3. Make the total as large as possible. A + B = p + q + r + s. Both A and B are positive, so a bigger total allows a bigger product. The four largest distinct digits are 9, 8, 7 and 6. So the largest possible total is A + B = 9 + 8 + 7 + 6 = 30.

  4. Split the total as evenly as possible. When the sum of two numbers is fixed, their product is largest when the two numbers are equal or as close as possible. With A + B = 30: - 15 × 15 = 225 - 14 × 16 = 224 - 13 × 17 = 221 - 12 × 18 = 216 The best split is A = 15 and B = 15.

  5. Check that the split can be made from the digits. We need two pairs from {9, 8, 7, 6} that each add up to 15: - 9 + 6 = 15 - 8 + 7 = 15 This works. All four digits are distinct and single-digit.

  6. List all the ways to pair 9, 8, 7, 6: - (9 + 8)(7 + 6) = 17 × 13 = 221 - (9 + 7)(8 + 6) = 16 × 14 = 224 - (9 + 6)(8 + 7) = 15 × 15 = 225 The largest is 225.

  7. Confirm nothing beats it. Any choice of four distinct digits gives A + B ≤ 30. For two numbers with A + B ≤ 30, A × B ≤ 15 × 15 = 225, because (A + B)² − (A − B)² = 4AB, so 4AB ≤ 30² = 900. No value above 225 is possible.

Answer: 225, from p = 9, q = 6, r = 8, s = 7 (or any arrangement of these pairs).

Option-wise explanation

  • a: incorrect — 230 cannot be reached. The four brackets' digits add up to at most 30, and two numbers that add up to 30 have a product of at most 15 × 15 = 225. This option tests whether you check the upper limit before you trust a large-looking number.
  • b: correct — Take the four largest distinct digits, 9, 8, 7, 6 (total 30), and pair them so each bracket is 15: (9 + 6)(8 + 7) = 15 × 15 = 225. This is the maximum possible.
  • c: incorrect — 224 = (9 + 7)(8 + 6) = 16 × 14. The digits are right but the pairing is not balanced. The trap is stopping at the first sensible-looking pairing without checking the even 15–15 split.
  • d: incorrect — 221 = (9 + 8)(7 + 6) = 17 × 13. This is the 'greedy' pairing that puts the two biggest digits together. It makes the brackets the most unequal, so it gives the smallest product of the three pairings.

How to eliminate

Two facts settle this question.

  1. Largest total: the four biggest distinct digits are 9, 8, 7, 6, so the total is 30.
  2. Balanced split: if the sum is fixed, the product is largest when the two parts are equal. 30 = 15 + 15 gives 225.

Remove 230 at once, because no split of 30 can go above 15 × 15. Then check that 15 + 15 can actually be formed: 9 + 6 and 8 + 7. It can, so the answer is 225. The other two options, 224 (16 × 14) and 221 (17 × 13), are the less balanced pairings of the same four digits.

Time: about 30–45 seconds. Attempt this one first. It is a sure mark.

Know more

Maximise a product when the sum is fixed

If A + B = S is fixed, A × B is largest when A and B are equal or as close as possible. The reason is 4AB = S² − (A − B)². The gap between A and B can only reduce the product.

Method for 'distinct digits' questions:

  1. Pick the largest allowed digits so the total S is as big as possible.
  2. Split S into parts that are as equal as possible.
  3. Check that the digits can actually form those parts.
Split of 30 Product
15 + 15 225
14 + 16 224
13 + 17 221
12 + 18 216

The product drops by the square of half the gap. 14 × 16 = 225 − 1², and 13 × 17 = 225 − 2².

Worked variant: p, q, r, s are distinct digits from 1 to 7. Find the greatest value of (p + q)(r + s). The largest four digits are 7, 6, 5, 4, so S = 22. The ideal split is 11 + 11: 7 + 4 = 11 and 6 + 5 = 11. Maximum = 11 × 11 = 121.

If S is odd, for example S = 23, the best split is 11 × 12 = 132. The same idea works for three brackets: make all of them as nearly equal as possible.