Number System and Divisibility for UPSC CSAT — Rules, LCM, HCF, and Remainders

intermediate 22 min read

Concept

Numbers are the bedrock of CSAT arithmetic — and the UPSC question-setters know it. Every year, two to four questions in the Prelims Paper-II touch some corner of the number system: a divisibility condition, a remainder trap, an LCM-HCF identity. Get comfortable here and you've secured easy marks.

Here's the mental model that unifies everything: every integer lives on a number line, and it leaves a "fingerprint" when divided by any fixed number. That fingerprint is the remainder — and most number-system questions are really about tracking remainders through arithmetic operations.

Think of it like a clock. The clock face has 12 positions (0 through 11). Once you pass 12, you "wrap around." If it's 10 o'clock now and you add 5 hours, you don't get 15 — you get 3. That wrapping-around behavior is modular arithmetic, and divisibility rules are just shortcuts to check whether the remainder is zero.

The number system you need for CSAT spans:

For CSAT, the action happens almost entirely in positive integers. The three engines driving most questions are:

  1. Divisibility rules — quick checks without long division
  2. LCM and HCF — structuring shared factors
  3. The division algorithmN = Divisor × Quotient + Remainder — the single most-tested identity in this chapter

A useful analogy: LCM is the smallest "meeting point" of two recurring events (say, two buses running on different cycles — when do they depart together?), while HCF is the largest common "unit" you can use to measure both quantities without a remainder.


Deep Dive

Divisibility Rules — The Fast Filters

You do not have time to divide in the exam hall. These rules let you filter in seconds:

| Divisor | Rule | |---------|------| | 2 | Last digit is even | | 3 | Sum of digits divisible by 3 | | 4 | Last two digits divisible by 4 | | 5 | Last digit is 0 or 5 | | 6 | Divisible by both 2 and 3 | | 7 | No clean one-liner; use repeated subtraction of 2 × last digit from the rest | | 8 | Last three digits divisible by 8 | | 9 | Sum of digits divisible by 9 | | 10 | Last digit is 0 | | 11 | Alternating digit sum (odd positions minus even positions) divisible by 11 | | 12 | Divisible by both 3 and 4 |

Key composite rule: divisibility by a composite number n works via co-prime factors. For n = 12: check divisibility by 4 and by 3 separately (4 and 3 are co-prime). Do not check by 2 and 6 — they are not co-prime and will give false positives.

The Division Algorithm

This is the skeleton of almost every "remainder" problem:

N=D×Q+Rwhere 0R<DN = D \times Q + R \quad \text{where } 0 \leq R < D

If a question tells you the quotient and remainder, reconstruct N immediately. Do not try to guess — just compute.

LCM and HCF — The Core Identity

For any two positive integers a and b:

LCM(a,b)×HCF(a,b)=a×b\text{LCM}(a, b) \times \text{HCF}(a, b) = a \times b

This is the single most-tested identity in LCM-HCF questions. Know it cold. If three of the four values are given, the fourth drops out in one step.

How to find HCF: Use the Euclidean algorithm — repeatedly divide the larger by the smaller and take remainders until you hit zero. The last non-zero remainder is the HCF.

Example: HCF(360, 60). Divide 360 by 60: remainder 0. So HCF = 60.

Example: HCF(72, 60). Divide 72 by 60: remainder 12. Divide 60 by 12: remainder 0. So HCF = 12.

How to find LCM: Prime factorize both numbers, take the highest power of each prime that appears.

LCM(8, 9): 8 = 2³, 9 = 3². LCM = 2³ × 3² = 72.

Simultaneous Divisibility Conditions

When a question says "divisible by both X and Y," it means divisible by LCM(X, Y). When it says "not divisible by Z," you count using inclusion-exclusion.

Count of multiples of k in range [a, b]:

Count=bka1k\text{Count} = \left\lfloor \frac{b}{k} \right\rfloor - \left\lfloor \frac{a-1}{k} \right\rfloor

Or equivalently, find the smallest multiple of k that is ≥ a, find the largest that is ≤ b, then use:

Count=largestsmallestk+1\text{Count} = \frac{\text{largest} - \text{smallest}}{k} + 1

Chinese Remainder Theorem (CRT) — Simplified for CSAT

When you have conditions like "divisible by 6 AND leaves remainder 4 when divided by 5," you're solving a system of congruences. CSAT doesn't expect you to name CRT, but you need the method:

  1. Write the general form from the first condition: N = 6k
  2. Substitute into the second: 6k ≡ 4 (mod 5)k ≡ 4 (mod 5)k = 5m + 4
  3. Back-substitute: N = 6(5m + 4) = 30m + 24

The combined cycle is lcm(6, 5) = 30. General form: N = 30m + 24. Now plug in values of m until you satisfy the range condition.

Factors and Perfect Numbers

The number of factors of N = p₁^a × p₂^b × p₃^c × ... is (a+1)(b+1)(c+1)....

This sometimes appears in CSAT as "how many divisors does N have?" or embedded in a counting problem. Quick check: 72 = 2³ × 3² has (3+1)(2+1) = 12 factors.


Memory Tricks and Shortcuts

patternComposite Divisibility via Co-prime Pairs

When checking divisibility by a composite number, always split into co-prime factors. For 12: check 4 AND 3. For 18: check 9 AND 2. For 24: check 8 AND 3. The shortcut is that checking two co-prime factors is always valid, while non-co-prime pairs (like 2 and 6 for 12) are not.

Worked example: Is 1836 divisible by 12? Sum of digits = 1+8+3+6 = 18 (divisible by 3, check). Last two digits = 36 = 9×4 (divisible by 4, check). So yes. Standard approach would require long division: ~45 seconds. This check: ~8 seconds.

substitutionLCM×HCF = Product Identity

When a question gives LCM, HCF, and one number, you do not need to factorize anything. Directly apply: other number = (LCM × HCF) / given number. One multiplication, one division — done.

Worked example: LCM = 360, HCF = 12, one number = 60. Other = (360 × 12)/60 = 4320/60 = 72. Standard method (factorize both numbers and rebuild): 4–5 steps. This method: 2 steps, under 10 seconds.

patternCounting Multiples in a Range

To count multiples of k from a to b (inclusive): find the first multiple ≥ a (call it F), find the last multiple ≤ b (call it L), then count = (L − F)/k + 1.

Worked example: Multiples of 72 from 1000 to 9999. First: ceil(1000/72)×72 = 14×72 = 1008. Last: floor(9999/72)×72 = 138×72 = 9936. Count = (9936−1008)/72 + 1 = 124 + 1 = 125. Attempting to list them: impossible in exam time. This formula: ~30 seconds.

substitutionReconstruct N from Division Algorithm Before Anything Else

If a question tells you "divided by D gives quotient Q and remainder R," your very first move is always N = D×Q + R. Write the number down. Every subsequent step becomes trivial.

Worked example: "Divided by 13, quotient 15, remainder 8." N = 13×15 + 8 = 195 + 8 = 203. Now any follow-up question (divide by 12, by 7, by 11) is just one more division. Without this, students try to reverse-engineer from options: 4 attempts × 30 seconds each = 2 minutes wasted.

patternCRT General Form via LCM as the Cycle

When you have two remainder conditions with moduli m₁ and m₂, the combined solution repeats every lcm(m₁, m₂). Find ONE solution that satisfies both conditions, then all solutions are of the form: N = lcm(m₁, m₂)×t + N₀.

Worked example: N ≡ 0 (mod 6) and N ≡ 4 (mod 5). lcm(6,5) = 30. First solution: N = 24 (check: 24/6 = 4 rem 0, 24/5 = 4 rem 4). General form: N = 30t + 24. For N > 100: t = 3 gives N = 114. Trial-and-error through multiples of 6: testing 102, 108, 114... — 3 checks. This method: 1 formula, answer in 20 seconds.


Fast-Solving Framework

In the exam hall, read the question and immediately classify it:

Step 1 — What type is it?

Step 2 — Is there an exclusion condition?

Step 3 — Range check

Step 4 — Verify with options

One rule that holds across all variants: never start computing before you've identified which of these four types the question is. Twenty seconds of classification saves two minutes of wrong-track computation.


Solved PYQs

Why this question: This is the canonical "count integers satisfying multiple divisibility conditions with an exclusion" — the most structurally complete question type in this chapter.

Previous Year Questionपिछले वर्ष का प्रश्न
How many four-digit numbers are divisible by both 8 and 9 but not by 5?
कितने चार-अंकीय संख्याएँ 8 और 9 दोनों से विभाज्य हैं लेकिन 5 से नहीं?
  1. 100
  2. 125
  3. 90
  4. 112
  1. 100
  2. 125
  3. 90
  4. 112
Solutionसमाधान
Numbers divisible by both 8 and 9 are divisible by lcm(8,9) = 72. Four-digit multiples of 72: from 1008 to 9936 (inclusive). Count = (9936 − 1008)/72 + 1 = 8928/72 + 1 = 124 + 1 = 125. Among these 125, we exclude those divisible by 5 (i.e., divisible by lcm(72,5) = 360). Multiples of 360 in four-digit range: 1080 to 9720. Count = (9720 − 1080)/360 + 1 = 8640/360 + 1 = 24 + 1 = 25. Answer = 125 − 25 = 100.
8 और 9 दोनों से विभाज्य संख्याएँ lcm(8,9) = 72 से विभाज्य हैं। चार-अंकीय 72 के गुणज: 1008 से 9936 तक। गणना = (9936 − 1008)/72 + 1 = 125। इनमें से, 5 से विभाज्य (यानी lcm(72,5) = 360 से विभाज्य) को छोड़ें। चार-अंकीय 360 के गुणज: 1080 से 9720 तक। गणना = 25। उत्तर = 125 − 25 = 100।

Solving path: Identify that "divisible by both 8 and 9" means divisible by LCM(8, 9) = 72. Count four-digit multiples of 72: smallest is 1008 (14×72), largest is 9936 (138×72). Count = (9936 − 1008)/72 + 1 = 125. Now exclude those also divisible by 5: LCM(72, 5) = 360. Smallest four-digit multiple of 360 is 1080, largest is 9720. Count = (9720 − 1080)/360 + 1 = 25. Final answer = 125 − 25 = 100. The key decision point: recognizing that "divisible by both 8 and 9" requires LCM, not just multiplication.


Why this question: Tests whether you can apply the division algorithm in forward and then backward direction. Students who don't reconstruct N get stuck.

Previous Year Questionपिछले वर्ष का प्रश्न
A certain number when divided by 13 gives a quotient of 15 and a remainder of 8. When this number is divided by 12, what is the remainder?
एक निश्चित संख्या को 13 से विभाजित करने पर भागफल 15 और शेषफल 8 मिलता है। जब इस संख्या को 12 से विभाजित किया जाता है, तो शेषफल क्या है?
  1. 7
  2. 11
  3. 10
  4. 9
  1. 7
  2. 11
  3. 10
  4. 9
Solutionसमाधान
Using the division algorithm: N = 13 × 15 + 8 = 195 + 8 = 203. Now divide 203 by 12: 203 = 12 × 16 + 11 = 192 + 11. The remainder is 11.
विभाजन एल्गोरिथम का उपयोग: N = 13 × 15 + 8 = 203। अब 203 को 12 से विभाजित करें: 203 = 12 × 16 + 11। शेषफल 11 है।

Solving path: The moment you see "quotient" and "remainder," write N = D×Q + R. Here: N = 13×15 + 8 = 203. Now the question becomes simply: what is 203 mod 12? 203 = 12×16 + 11. Remainder = 11. The trap is overthinking this — it's two multiplications and one division, nothing more.


Why this question: The LCM × HCF = product identity in its purest exam form. One step if you know the identity; five steps if you don't.

Previous Year Questionपिछले वर्ष का प्रश्न
The least common multiple of two numbers is 360 and their greatest common divisor is 12. If one number is 60, what is the other number?
दो संख्याओं का लघुत्तम समापवर्त्य 360 है और उनका महत्तम समापवर्तक 12 है। यदि एक संख्या 60 है, तो दूसरी संख्या क्या है?
  1. 84
  2. 48
  3. 72
  4. 120
  1. 84
  2. 48
  3. 72
  4. 120
Solutionसमाधान
Use the fundamental relationship: for any two positive integers a and b, LCM(a, b) × GCD(a, b) = a × b. Given LCM = 360, GCD = 12, and a = 60. Then 360 × 12 = 60 × b → 4320 = 60 × b → b = 72. Verify: GCD(60, 72) = GCD(60, 12) = 12 ✓, and LCM(60, 72) = (60 × 72)/12 = 4320/12 = 360 ✓.
मौलिक संबंध का उपयोग करें: किन्हीं दो सकारात्मक पूर्णांकों a और b के लिए, LCM(a, b) × GCD(a, b) = a × b। दिया गया: LCM = 360, GCD = 12, और a = 60। तब 360 × 12 = 60 × b → 4320 = 60 × b → b = 72। सत्यापन: GCD(60, 72) = 12 ✓, और LCM(60, 72) = (60 × 72)/12 = 360 ✓।

Solving path: Apply LCM × HCF = a × b directly. 360 × 12 = 60 × b. 4320 = 60b. b = 72. Verify: HCF(60, 72) — use Euclidean algorithm: 72 = 1×60 + 12, 60 = 5×12 + 0. HCF = 12. LCM = (60 × 72)/12 = 360. Both checks pass. Verification takes 15 extra seconds and eliminates any arithmetic error.


Why this question: Simultaneous congruence conditions — the CRT approach without needing to name it. Tests whether you can merge two modular conditions into a single general form.

Previous Year Questionपिछले वर्ष का प्रश्न
If a number is divisible by 6 and leaves a remainder of 4 when divided by 5, what is the smallest such positive integer greater than 100?
यदि एक संख्या 6 से विभाज्य है और 5 से विभाजित करने पर शेषफल 4 देती है, तो 100 से बड़ी सबसे छोटी ऐसी धनात्मक पूर्णांक क्या है?
  1. 120
  2. 108
  3. 114
  4. 104
  1. 120
  2. 108
  3. 114
  4. 104
Solutionसमाधान
We need N ≡ 0 (mod 6) and N ≡ 4 (mod 5). From the first, N = 6k. Substituting into the second: 6k ≡ 4 (mod 5), so k ≡ 4 (mod 5), giving k = 5m + 4. Thus N = 6(5m + 4) = 30m + 24. The general form is N = 30m + 24. For N > 100: 30m + 24 > 100, so m > 76/30 ≈ 2.53, meaning m ≥ 3. When m = 3, N = 90 + 24 = 114. Verify: 114 ÷ 6 = 19 ✓; 114 ÷ 5 = 22 rem 4 ✓.
हमें N ≡ 0 (mod 6) और N ≡ 4 (mod 5) चाहिए। पहली से, N = 6k। दूसरी में प्रतिस्थापित करने पर: 6k ≡ 4 (mod 5), इसलिए k ≡ 4 (mod 5), जिससे k = 5m + 4। इसलिए N = 30m + 24। N > 100 के लिए: 30m + 24 > 100, तो m ≥ 3। जब m = 3, N = 114। सत्यापन: 114 ÷ 6 = 19 ✓; 114 ÷ 5 = 22 rem 4 ✓।

Solving path: Two conditions: N ≡ 0 (mod 6) and N ≡ 4 (mod 5). Write N = 6k. Substitute: 6k ≡ 4 (mod 5). Since 6 ≡ 1 (mod 5), this gives k ≡ 4 (mod 5), so k = 5m + 4. Back-substitute: N = 6(5m + 4) = 30m + 24. For N > 100: 30m + 24 > 100, so m > 2.53, meaning m = 3 gives N = 114. Quick verify: 114/6 = 19 (no remainder), 114/5 = 22 remainder 4. Both pass. The elimination trap: option D (104) — check 104/6 = 17 remainder 2. Fails immediately.


Common Mistakes


Related Topics


Practice on SarkariRise

Sign up + get 3 free mocks →