Mizoram Patwari / Lekhpal /Quantitative Aptitude

Number system

Arithmetic · free study notes

📚 MIT‑Level Study Notes – Number System

(For the Mizoram Patwari / Lekhpal Quantitative Aptitude Programme)

Goal: Master the theory of number systems from first principles, understand all edge cases, and be ready to solve advanced aptitude problems that require deep insight into number theory, modular arithmetic, and base conversions.


1. Foundations

Concept Definition Key Properties
Integer A whole number, positive, negative or zero Closed under addition, subtraction, multiplication; not closed under division
Prime A natural number > 1 with exactly two distinct positive divisors (1 and itself) Unique factorisation theorem
Composite A natural number > 1 that is not prime Can be expressed as a product of primes
Zero Integer with additive identity (0 \times n = 0), (0 + n = n)
Negative Number (n < 0) (-a \cdot -b = a \cdot b), (-a + b = -(a - b))

Edge‑case note:
Zero is neither prime nor composite.
Negative primes (e.g., (-7)) are often excluded from divisibility rules but the factorisation theorem still holds with signs.


2. Number Bases

2.1. General Base‑(b) Representation

A base‑(b) (radix) integer (N) with digits (d_k d_{k-1}\dots d_1 d_0) satisfies

[ N = \sum_{i=0}^{k} d_i,b^i , \qquad 0 \le d_i < b. ]

  • Decimal (base 10) – common in aptitude.
  • Binary (base 2) – used in computing.
  • Octal (base 8), Hexadecimal (base 16) – compact notations.

Proof of uniqueness:
Suppose two distinct representations exist. Consider the highest differing place value; the difference in that place cannot be offset by lower places because each lower place contributes less than the next higher place. Contradiction. Thus representation is unique.

2.2. Converting Between Bases

  • From base (b) to base 10: Use the formula above.
  • From base 10 to base (b): Repeated division by (b), recording remainders (reverse order).

Edge‑case:
Numbers with leading zeros (e.g., 00123₁₀) are equivalent to 123₁₀; representation is not unique if leading zeros are allowed.


3. Divisibility & Remainders

3.1. General Divisibility Rule

Let (d) be a positive integer. A number (N) is divisible by (d) iff (N \bmod d = 0).

  • Modulo Arithmetic: (a \equiv b \pmod d) ⇔ (d | (a-b)).
  • Chinese Remainder Theorem (CRT): If moduli are pairwise coprime, the system of congruences has a unique solution modulo the product.

Proof Sketch of CRT:
Construct the solution via the method of successive substitutions or using the explicit formula (x = \sum a_i M_i y_i) where (M_i = \frac{m}{m_i}), (y_i) is the modular inverse of (M_i) mod (m_i).

3.2. Common Divisibility Rules

Divisor Rule Edge‑case
2 Even last digit 0 is even
3 Sum of digits divisible by 3 Negative numbers: sum of absolute digits
4 Last two digits divisible by 4 Numbers with fewer than two digits: treat missing digits as 0
5 Last digit 0 or 5
6 Divisible by both 2 & 3
7 Take 2× last digit, subtract from remaining truncated number For large numbers, repeated application
8 Last three digits divisible by 8
9 Sum of digits divisible by 9
11 Alternating sum of digits divisible by 11

Theorem (Divisibility by 9 and 3):
For a base‑10 integer (N = \sum d_i 10^i), (N \equiv \sum d_i \pmod 3) and (N \equiv \sum d_i \pmod 9).
Proof: Since (10 \equiv 1 \pmod 3) and (10 \equiv 1 \pmod 9), each term (d_i 10^i \equiv d_i \pmod{3,9}).


4. Prime Factorisation & Properties

4.1. Fundamental Theorem of Arithmetic (FTA)

Statement: Every integer (n > 1) can be written uniquely (up to order) as a product of prime powers:
[ n = \prod_{i=1}^{k} p_i^{e_i}, \quad p_i \text{ prime},, e_i \ge 1. ]

Implication for aptitude:

  • Greatest Common Divisor (GCD): Take min exponents.
  • Least Common Multiple (LCM): Take max exponents.

4.2. Edge Cases

  • n = 1: By convention, has no prime factors; GCD(1, n) = 1, LCM(1, n) = n.
  • Prime vs. Composite in modular arithmetic: When reducing powers, Euler’s theorem requires (\gcd(a, n) = 1).

5. Advanced Topics Relevant to Aptitude

5.1. Modular Exponentiation

  • Goal: Compute (a^b \bmod m) efficiently (O(log b) multiplications).
  • Algorithm: Binary exponent

Your note

Page 1

Doubt hai is topic me?

Free AI teacher se poocho — 24/7, step by step.