UPSC CSAT 2025 Q47: HCF of a Repdigit Number — Solved
Let P = QQQ be a 3-digit number. What is the HCF of P and 481 ?
- 1
- 13
- 37
- 481
Answer: (c) 37
Solution
- Write P in expanded form. P = QQQ means the digit Q appears in the hundreds, tens and units places. So P = 100Q + 10Q + Q = 111 × Q.
- Note the range of Q. P is a 3-digit number, so Q cannot be 0. Q is one of 1, 2, 3, …, 9.
- Factorise 111. 111 = 3 × 37. So P = 3 × 37 × Q.
- Factorise 481. Test small primes: 481 is odd, its digit sum 13 is not a multiple of 3, it does not end in 0 or 5, and 481 ÷ 7 = 68.7 (not exact), 481 ÷ 11 = 43.7 (not exact). Try 13: 13 × 37 = 481. So 481 = 13 × 37. Both 13 and 37 are prime.
- Find the common prime factors. 481 has only the prime factors 13 and 37. P = 3 × 37 × Q always contains 37.
- Check whether 13 can also divide P. P contains 13 only if 13 divides 3, 37 or Q. 13 does not divide 3 or 37. Q is at most 9, so 13 cannot divide Q. So 13 never divides P.
- Check that 37² does not matter. 481 contains 37 only once, so the HCF can contain 37 at most once.
- So HCF(P, 481) = 37, whatever the value of Q.
- Spot check: Q = 5 gives P = 555 = 3 × 5 × 37. HCF(555, 481) = 37, since 555 − 481 = 74 = 2 × 37 and 481 = 13 × 37.
Answer: 37
Option-wise explanation
- a: incorrect — An HCF of 1 would need P and 481 to share no prime factor. But every repdigit QQQ equals 111 × Q = 3 × 37 × Q, and 481 = 13 × 37, so 37 is always shared. This option is for students who never factorise 481 and assume a large odd number is prime.
- b: incorrect — 13 is a factor of 481, but it is not a factor of P. P = 3 × 37 × Q, and 13 cannot divide a digit from 1 to 9. The trap is picking any factor of 481 without checking that it also divides P.
- c: correct — P = 111 × Q = 3 × 37 × Q and 481 = 13 × 37. The only common prime factor is 37, and it appears once in 481, so the HCF is 37 for every digit Q.
- d: incorrect — An HCF of 481 would need 481 to divide P. The largest such P is 999, and 999 ÷ 481 is not a whole number (481 × 2 = 962). No 3-digit repdigit is a multiple of 481, so this option fails.
How to eliminate
Know the repdigit fact: every 3-digit number of the form QQQ is 111 × Q, and 111 = 3 × 37. So 37 is always a factor of P. Now check 481 ÷ 37: 37 × 13 = 481. That puts 37 in both numbers, which rules out 1 straight away. 481 is ruled out because no 3-digit repdigit (111, 222, …, 999) is a multiple of 481. 13 is ruled out because 13 does not divide 111 (13 × 8 = 104, 13 × 9 = 117) and cannot divide a single digit. Quick check with a real number: take 111. HCF(111, 481): 481 − 4 × 111 = 37, and 111 = 3 × 37, so the HCF is 37. About 30–45 seconds if you know 111 = 3 × 37; about 60–90 seconds if you have to factorise 481 by trial. Attempt in the first pass.
Know more
Repdigit factorisation
A number made of one repeated digit is that digit times a 'repunit' (a number made only of 1s):
- aa = 11 × a
- aaa = 111 × a
- aaaa = 1111 × a
- aaaaaa = 111111 × a
So every factor of the repunit is a factor of every repdigit of that length. Learn these:
| Repunit | Factorisation |
|---|---|
| 11 | 11 |
| 111 | 3 × 37 |
| 1111 | 11 × 101 |
| 11111 | 41 × 271 |
| 111111 | 3 × 7 × 11 × 13 × 37 |
Method for HCF questions with a repdigit
- Write the repdigit as repunit × digit.
- Factorise the other number into primes.
- Keep only the primes in both. A digit (1–9) can only add the primes 2, 3, 5 or 7, never 11, 13, 37 and so on.
- If the answer must hold for every digit, ignore what the digit adds.
Worked variant: Let N = aaaaaa be a 6-digit number. What is HCF(N, 1001)? N = 111111 × a = 3 × 7 × 11 × 13 × 37 × a. 1001 = 7 × 11 × 13. All three primes divide 111111, so HCF = 1001 for every digit a.
Related fact: abcabc = abc × 1001 = abc × 7 × 11 × 13. So any 6-digit number that repeats a 3-digit block is divisible by 7, 11 and 13.