UPSC CSAT 2023 Q17: Divisibility of XYZXYZ Numbers — Solved
For any choices of values of X, Y and Z, the 6-digit number of the form XYZXYZ is divisible by:
- 7 and 11 only
- 11 and 13 only
- 7 and 13 only
- 7, 11 and 13
Answer: (d) 7, 11 and 13
Solution
- Write the number by place value. XYZXYZ = X×100000 + Y×10000 + Z×1000 + X×100 + Y×10 + Z.
- Group the first three digits and the last three digits. The first block XYZ sits in the thousands place, so XYZXYZ = XYZ × 1000 + XYZ.
- Take XYZ out as a common factor. XYZXYZ = XYZ × (1000 + 1) = XYZ × 1001.
- Factorise 1001. Try small primes: 1001 ÷ 7 = 143. Then 143 ÷ 11 = 13. So 1001 = 7 × 11 × 13.
- So XYZXYZ = XYZ × 7 × 11 × 13. All three primes appear as factors whatever the digits X, Y and Z are. The number is therefore always divisible by 7, by 11 and by 13.
-
Check with a real number. Take XYZ = 247, so the number is 247247. - 247247 ÷ 7 = 35321 (7 × 35321 = 247247) - 247247 ÷ 11 = 22477 (11 × 22477 = 247247) - 247247 ÷ 13 = 19019 (13 × 19019 = 247247) All three divide with no remainder.
-
Any option that leaves out one of 7, 11 or 13 is wrong, because 1001 always contains all three.
Answer: 7, 11 and 13.
Option-wise explanation
- a: incorrect — It leaves out 13. 1001 = 7 × 11 × 13, so 13 always divides XYZXYZ (for example, 247247 ÷ 13 = 19019). The word "only" makes this option false. The trap is stopping after finding the first two factors.
- b: incorrect — It leaves out 7. 1001 ÷ 7 = 143, so 7 always divides XYZXYZ. Students who know the 11 test (alternating digit sum) and maybe the 13 test, but not the 7 test, fall into this trap.
- c: incorrect — It leaves out 11. The 11 test works directly: for XYZXYZ the alternating sum is X − Y + Z − X + Y − Z = 0, so 11 always divides it. "Only" makes this option false.
- d: correct — XYZXYZ = XYZ × 1001 and 1001 = 7 × 11 × 13. All three primes are factors for any choice of X, Y, Z.
How to eliminate
Do not test divisibility rules one by one. See the pattern: a three-digit block written twice means the block × 1001. Most aspirants already know 1001 = 7 × 11 × 13. Every option is a subset of {7, 11, 13}, and only one option has all three, so the question is over once you factorise 1001.
If you do not remember the factorisation, write any example, say 100100 (X = 1, Y = 0, Z = 0), which is 100 × 1001. Divide 1001 by 7 to get 143. Then 143 = 11 × 13. Each of the first three options leaves out a factor that is clearly present.
Time: about 20–40 seconds. Attempt this one first. It is a sure mark.
Know more
Repeated-block numbers = block × a fixed multiplier
When a digit block repeats, factor it out. The multiplier is fixed by the block length and the number of repeats. So its prime factors divide every number of that pattern, whatever the digits are.
- A k-digit block written twice: block × (10^k + 1)
- A k-digit block written three times: block × (10^(2k) + 10^k + 1)
| Pattern | Equals | Multiplier factorised |
|---|---|---|
| ABAB | AB × 101 | 101 (prime) |
| ABCABC | ABC × 1001 | 7 × 11 × 13 |
| ABCDABCD | ABCD × 10001 | 73 × 137 |
| ABABAB | AB × 10101 | 3 × 7 × 13 × 37 |
| AAA | A × 111 | 3 × 37 |
| AAAAAA | A × 111111 | 3 × 7 × 11 × 13 × 37 |
Worked variant. Which number always divides a six-digit number of the form ABABAB: 11 or 37? ABABAB = AB × 10000 + AB × 100 + AB = AB × 10101 = AB × 3 × 7 × 13 × 37. So 37 always divides it. 11 does not: 121212 has alternating digit sum 1 − 2 + 1 − 2 + 1 − 2 = −3, which is not a multiple of 11. Check: 121212 ÷ 37 = 3276.
Watch "only" and "always". "Always divisible by" means the factor must come from the multiplier, not from the digits. A particular choice of digits can add more factors, but those do not count.