Notes
All notes

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

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:

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

\[ \text{HCF}(a,b) \times \text{LCM}(a,b) = a \times b \quad\text{(for two numbers)} \]

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

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

Practice

QQuestionA number leaves remainder 5 when divided by 9 and remainder 3 when divided by 4. What is its remainder when divided by 36?

[!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).

QQuestionFind the unit digit of \(3^{87} + 7^{42}\).

[!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.

QQuestionThe LCM of two numbers is 495 and their HCF is 5. If their sum is 100, find the numbers.

[!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.

QQuestionHow many trailing zeros are there in \(100!\)?

[!solution] \(\lfloor 100/5 \rfloor + \lfloor 100/25 \rfloor + \lfloor 100/125 \rfloor = 20 + 4 + 0 = 24\). 24 trailing zeros.

Pitfalls

QQuestionSelf-check

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.