Number System — CAT Quantitative Ability
Number System questions frequently involve numbers too large to compute directly — a 100-digit factorial, a power like , or a divisor count for a number with dozens of factors. The entire topic is a set of shortcuts that avoid ever computing the large number itself, built on prime factorisation, modular arithmetic and a few counting identities.
1. Factors and divisors
If is the prime factorisation of , then:
For : number of divisors , and sum of divisors . Both formulas depend entirely on correct prime factorisation — an arithmetic slip there propagates through the whole computation, so factorising carefully is worth the extra ten seconds.
A number is a perfect square if and only if it has an odd number of divisors — every divisor of pairs with , and this pairing is perfect except when , which happens only when is a perfect square. This converts "how many perfect squares divide 's divisor list" reasoning into a parity check on the divisor count itself, without listing a single divisor.
Euler's totient function counts the integers from to that share no common factor with , and for it is computed directly from the prime factorisation:
For : — exactly 12 of the numbers from 1 to 36 share no factor with 36.
2. HCF and LCM
For any two numbers, the product of their HCF and LCM always equals the product of the numbers themselves:
This identity converts a question that gives HCF and one number (or LCM and one number) directly into the other, without factorising either number. The Euclidean algorithm — repeatedly replacing the larger number with the remainder of dividing it by the smaller, until the remainder is — finds the HCF of two numbers faster than factorising both, especially when the numbers are large or share no small common factors that are easy to spot by inspection.
Trap. The HCF-LCM product identity holds only for two numbers, not three or more. For three numbers, HCF and LCM must each be computed directly (pairwise HCF repeated, or via prime factorisation), and there is no shortcut product relationship analogous to the two-number case.
HCF and LCM of fractions follow their own direct rule, applied to numerators and denominators separately:
A recurring word-problem pattern — "find the greatest length that can measure three given lengths exactly" — is simply asking for the HCF of the three lengths, while "find the smallest quantity that is a whole multiple of each of several given quantities" is asking for the LCM; recognising which of the two a word problem wants, before computing anything, is the actual difficulty.
3. Divisibility rules
| Divisor | Rule |
|---|---|
| 2 | Last digit is even |
| 3 | Digit sum divisible by 3 |
| 4 | Last two digits divisible by 4 |
| 5 | Last digit is 0 or 5 |
| 6 | Divisible by both 2 and 3 |
| 8 | Last three digits divisible by 8 |
| 9 | Digit sum divisible by 9 |
| 11 | Alternating digit sum (from the right) divisible by 11 |
The rule for 11 is the one candidates most often get wrong by applying it inconsistently: take the digits from the right, alternately adding and subtracting, and check whether the result is a multiple of (including ). For : alternating sum , a multiple of — confirming .
Divisibility by 7 has no single-glance rule, but a genuinely fast iterative one exists: double the last digit, subtract it from the remaining leading digits, and repeat until a small enough number remains to check by inspection. For : last digit , doubled is ; remaining digits , minus is , which is — so is divisible by .
This is faster than long division once practised, though most CAT questions involving 7 are better handled through the remainder and cyclicity techniques of the next two sections rather than a pure divisibility check.
4. Remainders and congruences
Modular arithmetic (writing when and leave the same remainder on division by ) lets remainders be computed step by step rather than by dividing an enormous number directly: remainders of a product are the product of the remainders (each reduced mod as you go), and remainders of a sum are the sum of the remainders.
Fermat's little theorem gives a direct shortcut for remainders modulo a prime : if does not divide , then . This is why large-exponent remainder questions modulo a prime often reduce to finding the exponent's remainder modulo first, rather than reducing the base's powers one at a time.
A binomial-expansion trick handles remainder questions where the base is one more or one less than the divisor. Writing as and expanding by the binomial theorem, every term except the last carries a factor of , so — the whole computation reduces to the sign of , with no actual expansion needed.
A negative remainder is simply converted to the standard positive form by adding the divisor: a computed remainder of modulo is reported as , since remainders are conventionally stated as non-negative and smaller than the divisor.
5. Units digit and cyclicity
The units digit of a power depends only on the units digit of the base, and it repeats in a cycle of length at most 4:
| Units digit of base | Cycle | Length |
|---|---|---|
| 0, 1, 5, 6 | Always the same digit | 1 |
| 4, 9 | Two-digit cycle | 2 |
| 2, 3, 7, 8 | Four-digit cycle | 4 |
To find the units digit of , find the cycle for 's units digit, then reduce modulo the cycle length (treating a remainder of as the last position in the cycle, not position ). For : the cycle of is (length 4), and , so the units digit is the 2nd entry, .
6. Primes
A number is prime only if it has no factor other than 1 and itself, and testing this requires checking divisibility only up to its square root — if had a factor greater than , it would necessarily pair with a factor smaller than , which would already have been found. This is why primality testing for even a fairly large number is fast: checking means testing divisibility only by primes up to .
Any two consecutive integers are always coprime (their HCF is always 1), since any common factor greater than 1 would have to divide their difference, which is exactly 1. This single fact underlies why consecutive-integer product and sum questions in probability and counting rarely need an explicit HCF computation — coprimality is guaranteed by the setup itself.
6a. Number systems and base conversion
A number written in base uses digits through , and its value in base 10 is the sum of each digit times the corresponding power of . Converting (base 8) to base 10: .
Converting base 10 to another base reverses the process, by repeated division: divide by the target base, record the remainder, and repeat on the quotient until it reaches 0 — the remainders, read from last to first, are the digits of the new base representation. This is the same repeated-division idea used in the Euclidean algorithm, applied to place value instead of to a common factor.
7. Factorials — trailing zeros and prime powers
A trailing zero in comes from a factor of , and factors of 5 are always scarcer than factors of 2 in a factorial — so the number of trailing zeros equals the number of times divides , computed by Legendre's formula:
For : trailing zeros . The same formula with any prime gives the highest power of that prime dividing , not just for trailing zeros.
8. Counting via inclusion-exclusion
For two overlapping conditions, counting "either A or B" by simply adding the counts of A and B double-counts everything satisfying both:
To count numbers from 1 to 100 divisible by 2 or 3: . The subtracted term is always the count divisible by the LCM of the two divisors, not their product, which matters once the two conditions share a common factor.
For three conditions, the pattern extends by adding back the triple overlap that gets subtracted out twice:
Each pairwise and triple intersection is again computed via the LCM of the relevant divisors — counting numbers up to 100 divisible by 2, 3 or 5 needs the individual counts, all three pairwise LCM counts (6, 15, 10), and the count divisible by their overall LCM (30), combined by this alternating pattern.
Worked Examples
Example 1 (divisors — easy). Find the number of divisors and the sum of divisors of 360.
. Number of divisors . Sum of divisors .
Example 2 (HCF-LCM — easy). Two numbers have HCF 12 and LCM 72. If one of the numbers is 24, find the other.
Using product of the numbers: .
Example 3 (HCF via Euclid — medium). Find the HCF of 1071 and 462 using the Euclidean algorithm.
. . . The last non-zero remainder is , so .
Example 4 (remainders — hard). Find the remainder when is divided by 5.
, so we need . The cycle of powers of mod is (length 4, matching Fermat's little theorem since ). , meaning the exponent is an exact multiple of the cycle length, landing on the last (4th) entry: . The remainder is .
Example 5 (units digit — easy). Find the units digit of .
The cycle of units digits of powers of 3 is (length 4). , landing on the 2nd entry: .
Example 6 (factorials, trailing zeros — medium). Find the number of trailing zeros in .
trailing zeros.
Example 7 (factorials, prime power — hard). Find the highest power of 3 that divides .
. So divides , and does not.
Example 8 (inclusion-exclusion — medium). How many integers from 1 to 100 are divisible by 2 or 3?
.
Example 9 (base conversion — medium). Convert 300 (base 10) to base 8.
remainder . remainder . remainder . Reading the remainders from last to first: .
Check: , confirming the conversion.
Summary
Number System questions almost always avoid computing the large number itself — through prime factorisation, modular arithmetic, or a counting identity — so the goal is always to find the right shortcut, not to brute-force the arithmetic.
Number and sum of divisors follow directly from prime factorisation: for the count, and the product of terms for the sum.
HCF × LCM equals the product of the two numbers — for two numbers only, never three or more — and the Euclidean algorithm finds HCF fast without factorising.
Units digits and remainders both repeat in cycles of length at most 4 (mod 10 for units digits; length for remainders modulo a prime , via Fermat's little theorem); reduce the exponent modulo the cycle length, treating an exact multiple as the last position, not position zero.
Trailing zeros in and the highest power of any prime dividing both use Legendre's formula, summing until the terms vanish.
Inclusion-exclusion for two overlapping conditions subtracts the count divisible by their LCM, not their product, from the sum of the individual counts.
