Number System, HCF and LCM (Aptitude #1)
Every quantitative aptitude paper leans on the number system: divisibility, unit digits, factors, and HCF/LCM. These questions look varied but collapse to a handful of rules, and speed here saves time for the long word problems. This post teaches the rules and then works each variation you meet in CAT, bank, SSC, and railway papers, step by step.
The building blocks
- Natural numbers: \(1, 2, 3, \dots\)
- Whole numbers: \(0, 1, 2, \dots\)
- Integers: \(\dots, -2, -1, 0, 1, 2, \dots\)
- Rational: expressible as \(\frac{p}{q}\); irrational: not (e.g. \(\sqrt{2}\), \(\pi\)).
- Prime: exactly two factors; composite: more than two. \(1\) is neither.
- Co-prime: HCF is \(1\).
Sum of first \(n\) natural numbers: \(\frac{n(n+1)}{2}\). Of squares: \(\frac{n(n+1)(2n+1)}{6}\). Of cubes: \(\left[\frac{n(n+1)}{2}\right]^2\).
Divisibility rules
| Divisible by | Test |
|---|---|
| 2 | last digit even |
| 3 | digit sum divisible by 3 |
| 4 | last two digits divisible by 4 |
| 5 | last digit 0 or 5 |
| 6 | divisible by 2 and 3 |
| 8 | last three digits divisible by 8 |
| 9 | digit sum divisible by 9 |
| 11 | (sum of odd-place digits) − (sum of even-place digits) is 0 or a multiple of 11 |
Variation 1 — find the missing digit
Q. If the number \(74\,x\,5\) is divisible by 3, find the least value of \(x\). Solution. Digit sum \(= 7 + 4 + x + 5 = 16 + x\). For divisibility by 3, \(16 + x\) must be a multiple of 3. The next multiple after 16 is 18, so \(x = 2\).
Variation 2 — divisibility by 11
Q. Is \(9\,86\,42\,13\) divisible by 11? Solution. Odd places (from the right): \(3 + 2 + 8 = 13\)? Careful with place parity. Reading left to right for an 8-digit number, positions 1,3,5,7 = \(9,6,4,1\) sum \(=20\); positions 2,4,6,8 = \(8,2,2,3\) sum \(=15\). Difference \(= 5\), not a multiple of 11 → not divisible.
Unit digit and cyclicity
The unit digit of a power repeats in a cycle of length 1, 2, or 4.
| Base’s unit digit | Cycle | Period |
|---|---|---|
| 0, 1, 5, 6 | itself | 1 |
| 4, 9 | e.g. 4, 6 | 2 |
| 2, 3, 7, 8 | 4 terms | 4 |
Shortcut. To find the unit digit of \(a^n\), take the base’s unit digit, find the cycle, and use \(n \bmod \text{period}\) (with remainder 0 meaning the last term of the cycle).
Variation 3 — unit digit of a large power
Q. Unit digit of \(7^{95}\). Solution. \(7\) cycles as \(7, 9, 3, 1\) (period 4). \(95 \bmod 4 = 3\), so we want the 3rd term: \(3\). Answer: 3.
\begin{tikzpicture}[font=\rmfamily, >=stealth,
b/.style={draw, thick, minimum width=0.8cm, minimum height=0.6cm, font=\small\bfseries}]
\foreach \i/\v in {0/7,1/9,2/3,3/1} { \node[b, fill=blue!10] at (\i*1.0,0) {\v}; \node[font=\scriptsize, anchor=north] at (\i*1.0,-0.35) {\the\numexpr\i+1}; }
\node[font=\rmfamily\small, text=black!60, anchor=north] at (1.5,-0.85) {$7^n$ unit digits; period 4};
\end{tikzpicture}
Factors
If \(N = p^a \cdot q^b \cdot r^c\) (prime factorisation), then:
- Number of factors: \((a+1)(b+1)(c+1)\).
- Sum of factors: \(\frac{p^{a+1}-1}{p-1} \times \frac{q^{b+1}-1}{q-1} \times \cdots\)
- Number of ways to express as a product of two factors: \(\frac{d(N)}{2}\) if \(d(N)\) is even, else \(\frac{d(N)+1}{2}\).
Variation 4 — count and sum of factors
Q. Find the number of factors of 360 and their sum. Solution. \(360 = 2^3 \times 3^2 \times 5^1\). Number of factors \(= (3+1)(2+1)(1+1) = 24\). Sum \(= (2^4-1)/(2-1) \times (3^3-1)/(3-1) \times (5^2-1)/(5-1) = 15 \times 13 \times 6 = 1170\).
HCF and LCM
- HCF (GCD): the largest number dividing each. LCM: the smallest number divisible by each.
- Prime factorisation method: HCF takes the lowest power of each common prime; LCM takes the highest power of every prime.
\[ \text{HCF}(a,b) \times \text{LCM}(a,b) = a \times b \quad\text{(for two numbers)} \]
- HCF of fractions \(= \dfrac{\text{HCF of numerators}}{\text{LCM of denominators}}\); LCM of fractions \(= \dfrac{\text{LCM of numerators}}{\text{HCF of denominators}}\).
Variation 5 — HCF/LCM of fractions
Q. HCF and LCM of \(\frac{2}{3}, \frac{8}{9}, \frac{16}{81}\). Solution. HCF \(= \frac{\text{HCF}(2,8,16)}{\text{LCM}(3,9,81)} = \frac{2}{81}\). LCM \(= \frac{\text{LCM}(2,8,16)}{\text{HCF}(3,9,81)} = \frac{16}{3}\).
Variation 6 — bells ringing together (LCM application)
Q. Three bells ring at intervals of 6, 8, and 12 minutes. If they ring together at 9:00, when do they next ring together? Solution. They ring together every LCM\((6,8,12)\) minutes. LCM \(= 24\) minutes. Next together at 9:24.
Variation 7 — largest number dividing with remainders
Q. Find the largest number that divides 62, 132, and 237 leaving the same remainder in each case. Solution. If the remainder is the same, the differences are exactly divisible: \(132-62=70\), \(237-132=105\), \(237-62=175\). The answer is HCF\((70,105,175) = 35\).
Remainders
- \(\frac{a \times b}{n}\) remainder \(= (\text{rem of } a)(\text{rem of } b) \bmod n\) (work with small remainders).
- Cyclicity for remainders: powers of a number modulo \(n\) also cycle.
Variation 8 — remainder of a large product
Q. Remainder when \(17 \times 23\) is divided by 7. Solution. \(17 \equiv 3\), \(23 \equiv 2 \pmod 7\), product \(18 \equiv 4 \pmod 7\). Answer: 4.
Shortcuts worth memorising
- Divisibility by 7: double the last digit and subtract from the rest; repeat until small; divisible if the result is 0 or a multiple of 7.
- Consecutive numbers: the product of \(n\) consecutive integers is divisible by \(n!\).
- HCF–LCM: for two numbers, if HCF is \(h\) and the numbers are \(ha, hb\), then \(a, b\) are co-prime and LCM \(= hab\).
- Trailing zeros in \(n!\): sum of \(\left\lfloor n/5 \right\rfloor + \left\lfloor n/25 \right\rfloor + \left\lfloor n/125 \right\rfloor + \cdots\)
Practice
[!solution] The number is of the form \(9k + 5\). Trying \(k = 0,1,2,3\): \(5,14,23,32\); among these \(23 = 4 \times 5 + 3\) leaves remainder 3 mod 4. So \(N \equiv 23 \pmod{36}\) and the remainder is 23 (in general, solve by the Chinese remainder / listing method).
[!solution] \(3\) cycles \(3,9,7,1\) (period 4); \(87 \bmod 4 = 3\) → unit digit 7. \(7\) cycles \(7,9,3,1\); \(42 \bmod 4 = 2\) → unit digit 9. Sum \(= 7 + 9 = 16\) → unit digit 6.
[!solution] Let the numbers be \(5a, 5b\) with \(a, b\) co-prime. LCM \(= 5ab = 495 \Rightarrow ab = 99\). Sum \(= 5(a+b) = 100 \Rightarrow a+b = 20\). Solving \(a+b=20\), \(ab=99\): \(a=9, b=11\). Numbers are 45 and 55.
[!solution] \(\lfloor 100/5 \rfloor + \lfloor 100/25 \rfloor + \lfloor 100/125 \rfloor = 20 + 4 + 0 = 24\). 24 trailing zeros.
Pitfalls
- Ignoring place parity in the divisibility-by-11 rule. Count positions carefully from one end.
- Remainder 0 in unit-digit cycles. A remainder of 0 means the last term of the cycle, not the first.
- Using the HCF×LCM = product rule for more than two numbers. It holds only for pairs.
- Forgetting distinct prime factors when counting factors. Factorise fully first.
- Confusing HCF and LCM of fractions. Numerators use HCF for HCF and LCM for LCM; denominators swap.
How do you find the unit digit of \(a^n\) quickly, and what does a remainder of 0 in the cycle mean?
ASolution
Reduce to the base’s unit digit, find its cycle length (1, 2, or 4), take \(n \bmod \text{cycle length}\), and read that position; a remainder of 0 means the last term of the cycle.
Next: Percentages (Aptitude #2) — the base for profit/loss, interest, and every data interpretation set.