UPSC CSAT 2025 Q28: Triples with Given LCM and HCF — Solved
There are n sets of numbers each having only three positive integers with LCM equal to 1001 and HCF equal to 1. What is the value of n ?
- 6
- 7
- 8
- More than 8
Answer: (d) More than 8
Solution
- Factorise the LCM. 1001 = 7 × 143 = 7 × 11 × 13. So 1001 is a product of three different primes, each to the power 1.
- What this means for the three numbers. Each number divides the LCM, so each number is a product of some of 7, 11 and 13 (or is 1). The possible numbers are 1, 7, 11, 13, 77, 91, 143 and 1001.
- Look at one prime at a time, say 7. Because the LCM is 1001, at least one of the three numbers must contain 7. Because the HCF is 1, 7 cannot be in all three numbers. So 7 goes into exactly one number or exactly two numbers.
- Count the ways for one prime. Name the three positions A, B, C. Exactly one: A, B or C, which is 3 ways. Exactly two: AB, AC or BC, which is 3 ways. Total = 3 + 3 = 6 ways. This is the same as 2³ − 2 = 8 − 2 = 6 (all subsets, minus 'none' and minus 'all three').
- The primes are independent, so ordered triples (A, B, C) = 6 × 6 × 6 = 216.
- Remove repeats inside a triple. A = B happens only if every prime is either in C alone or in A and B together. That gives 2 choices per prime, so 2³ = 8 ordered triples with A = B. In each of these A ≠ C, because A = B = C would put a prime in all three or in none. The same count holds for A = C and for B = C, so 3 × 8 = 24 ordered triples have a repeated number. The 8 repeated sets are {1, 1, 1001}, {7, 7, 143}, {11, 11, 91}, {13, 13, 77}, {77, 77, 13}, {91, 91, 11}, {143, 143, 7}, {1001, 1001, 1}.
- Ordered triples with three different numbers = 216 − 24 = 192. Each set of three different numbers can be ordered in 3! = 6 ways. Sets of three different numbers = 192 ÷ 6 = 32.
- If a 'set' may repeat a number, add the 8 repeated sets: 32 + 8 = 40. (Check with Burnside: (216 + 3 × 8) ÷ 6 = 240 ÷ 6 = 40.)
- Spot-check by listing a few sets of different numbers: {7, 11, 13}, {1, 7, 143}, {1, 11, 91}, {1, 13, 77}, {1, 77, 91}, {1, 77, 143}, {1, 91, 143}, {1, 7, 1001}, {1, 11, 1001}, {1, 13, 1001}. Each has LCM 1001 and HCF 1. That is already 10.
- Whichever reading you take, n = 32 or n = 40, and both are more than 8.
Answer: n is more than 8.
Option-wise explanation
- a: incorrect — You get 6 if you count the ways for one prime (2³ − 2 = 6) and stop there, or if you list only the obvious sets like {1, 7, 143} and {7, 11, 13}. The true count is 32 sets of different numbers (40 if repeats are allowed).
- b: incorrect — 7 is a partial list. Students usually stop after sets that contain 1 and one or two products. They miss sets like {1, 77, 91} where two numbers share a prime, which is allowed because the HCF of all three is still 1.
- c: incorrect — 8 is the trap built on the 8 divisors of 1001 (2 × 2 × 2 = 8), or on 2³. The number of divisors is not the number of triples. Ten valid sets can be listed in under a minute, so 8 is too small.
- d: correct — Each of the primes 7, 11 and 13 can be placed in 6 ways (in one or two of the three numbers), which gives 216 ordered triples. That works out to 32 sets of different numbers, or 40 if repeats are allowed. Either way it is more than 8.
How to eliminate
You do not need the exact count. The options stop at 8, so you only have to show that 9 valid sets exist.
- Factorise: 1001 = 7 × 11 × 13.
- List the sets quickly: {7, 11, 13}; then 1 with a split of the rest: {1, 7, 143}, {1, 11, 91}, {1, 13, 77}; then 1 with one prime and 1001: {1, 7, 1001}, {1, 11, 1001}, {1, 13, 1001}; then 1 with two products that overlap: {1, 77, 91}, {1, 77, 143}, {1, 91, 143}.
- That is 10 sets, more than 8, so mark 'More than 8' and move on.
If you prefer a formula: 6 ways per prime gives 6³ = 216 ordered triples. Dividing even by 6 gives about 36, far above 8.
About 45–75 seconds once you have factorised 1001. Attempt it in your first pass. The factorisation is the only real step.
Know more
Counting tuples with a given LCM and HCF: work prime by prime
Write the LCM as a product of prime powers. Each prime then works on its own, and you multiply the counts at the end.
For a prime p that appears as p¹ in the LCM, with HCF 1 and k numbers:
- at least one number must contain p (LCM condition);
- not all k numbers can contain p (HCF condition).
So the ways per prime = 2^k − 2 (all subsets, minus 'none', minus 'all').
| Numbers (k) | Ways per prime (2^k − 2) | Ordered tuples for 3 primes |
|---|---|---|
| 2 | 2 | 8 |
| 3 | 6 | 216 |
| 4 | 14 | 2744 |
For a prime power p^e with HCF 1, count the exponent choices from 0 to e where the largest is e and the smallest is 0. For three numbers this is (e+1)³ − 2e³ + (e−1)³.
The product gives ordered tuples. To get unordered sets, divide by k! after removing the tuples with repeated numbers, or use the symmetry check shown in the solution.
Worked variant. How many pairs have LCM 30 and HCF 1? 30 = 2 × 3 × 5. With k = 2, each prime goes to exactly one number: 2 ways. Ordered pairs = 2³ = 8. Unordered pairs = 8 ÷ 2 = 4: {1, 30}, {2, 15}, {3, 10}, {5, 6}. In general, a number with m distinct primes has 2^(m−1) coprime pairs with that LCM.