UPSC CSAT 2025 Q6: Primes in Arithmetic Progression — Solved
Three prime numbers p, q and r, each less than 20, are such that p − q = q − r. How many distinct possible values can we get for (p + q + r)?
- 4
- 5
- 6
- More than 6
Answer: (d) More than 6
Solution
- Rewrite the condition. p − q = q − r gives p + r = 2q. So q is the average of p and r. The three numbers r, q, p form an arithmetic progression with q in the middle.
- Find the sum. p + q + r = (p + r) + q = 2q + q = 3q. The sum depends only on the middle prime q. So the number of different sums equals the number of primes q that can be the middle term.
- List the primes less than 20: 2, 3, 5, 7, 11, 13, 17, 19. That is 8 primes.
- Check what the question allows. It asks for three prime numbers p, q and r with p − q = q − r. It does not say they must be different. So p = q = r is allowed. The difference is then 0 on both sides: p − q = 0 = q − r.
-
With p = q = r, every prime works as q: - q = 2: (2, 2, 2), sum 6 - q = 3: (3, 3, 3), sum 9 - q = 5: (5, 5, 5), sum 15 - q = 7: (7, 7, 7), sum 21 - q = 11: (11, 11, 11), sum 33 - q = 13: (13, 13, 13), sum 39 - q = 17: (17, 17, 17), sum 51 - q = 19: (19, 19, 19), sum 57
-
Check whether non-equal triples add any new sums. Since the sum is 3q, any such triple can only repeat a value from step 5. For example, 3, 5, 7 gives 15. Also 3, 7, 11 gives 21. Both 3, 11, 19 and 5, 11, 17 give 33. Finally, 7, 13, 19 gives 39. Nothing new appears.
- Distinct sums: 6, 9, 15, 21, 33, 39, 51, 57. That is 8 values.
- 8 is more than 6.
Answer: More than 6 (8 distinct values of p + q + r).
Option-wise explanation
- a: incorrect — You get 4 if you assume p, q and r must be different primes. Then only q = 5, 7, 11 and 13 work (3+7 = 10, 3+11 = 14, 3+19 = 22, 7+19 = 26), giving sums 15, 21, 33 and 39. The question never asks for distinct primes, so this answer misses the four equal triples (2,2,2), (3,3,3), (17,17,17) and (19,19,19).
- b: incorrect — No consistent reading gives 5. If the primes must be distinct, there are 4 sums. If they need not be, there are 8. Getting 5 means some cases were counted only in part, for example adding one equal triple to the four distinct-case sums.
- c: incorrect — Six is still too few, because the sum is 3q and all 8 primes below 20 can be q. A count of 6 usually comes from dropping q = 2 and q = 3 as 'too small' or 'even', or from skipping 17 and 19 because no distinct pair averages to them.
- d: correct — The sum is p + q + r = 3q. Each of the 8 primes below 20 can be q, with p = q = r allowed. That gives 8 distinct sums: 6, 9, 15, 21, 33, 39, 51 and 57, which is more than 6.
How to eliminate
Do not list triples. Turn the condition into p + r = 2q, so the sum is 3q. Now you only need to count how many primes can sit in the middle. Next, read the wording: the question says 'three prime numbers', not 'three distinct primes'. So p = q = r = any prime is a valid triple. That makes every prime below 20 a possible q. There are 8 of them (2, 3, 5, 7, 11, 13, 17, 19), and 8 is more than 6, so you are done. The trap is assuming the primes must be different, which leads to 4. Before you mark the 'distinct' answer in a counting question, check whether the question actually asks for distinct values. About 30–45 seconds once you see that the sum is 3q. Attempt this question first.
Know more
Three terms in arithmetic progression
If a − b = b − c, then a + c = 2b. The middle term is the average of the outer two, and the sum is a + b + c = 3b. Any question that asks how many sums are possible therefore reduces to how many middle terms are possible.
Two checks to make every time
- Is a common difference of 0 allowed? If the question does not say 'distinct', then a = b = c counts.
- Parity with primes: if 2 is one of the outer terms, then 2 + c = 2b makes c even, so c = 2 as well. A non-constant prime AP of three terms therefore uses odd primes only.
Worked variant. Primes below 12 are 2, 3, 5, 7 and 11. How many sums are possible if a − b = b − c?
| Middle b | a + c = 2b | Distinct pair? | Sum 3b |
|---|---|---|---|
| 2 | 4 | none | 6 |
| 3 | 6 | none | 9 |
| 5 | 10 | 3 + 7 | 15 |
| 7 | 14 | 3 + 11 | 21 |
| 11 | 22 | none below 12 | 33 |
- With equal terms allowed: 5 sums.
- With distinct primes only: 2 sums (15 and 21).
The two readings give very different counts, so the exact wording decides the answer. UPSC often sets the 'distinct' count as a distractor.