Manipur Forest Guard /Quantitative Aptitude

Number system

Arithmetic · free study notes

Number System – IIT‑JEE / Competitive Exam Notes

(Quantitative Aptitude – “Number System”)

Goal – Master all aspects of number systems (base‑n representation, conversions, properties, divisibility) so that you can solve any JEE‑style problem in seconds.


1. Overview

Concept Key Idea Example
Base‑(b) Any integer representation with digits (0!-!(b-1)) (1011_2 = 1·2^3+0·2^2+1·2^1+1·2^0=11_{10})
Conversion Use the positional value (b^k) Convert (345_{7}) to decimal → (3·7^2+4·7+5=157)
Divisibility Rules Depend on base and arithmetic properties In base‑(b), a number is divisible by (b-1) iff the sum of its digits is a multiple of (b-1).
Two’s Complement Representation of negatives in binary (-5_{10}) in 8‑bit → (11111011_2)
Modular Arithmetic Key in divisibility and cyclic patterns (123456789_{10}\mod 7 = 0) because (123456789 = 3·41·333667)
Number‑theoretic Identities Useful for quick evaluation (\sum_{k=0}^{n}b^k = \frac{b^{n+1}-1}{b-1})

2. Representations & Conversions

2.1 Decimal to Base‑(b)

  1. Repeated Division
    [ N \div b = q_0;\text{remainder}; r_0 \ q_0 \div b = q_1;\text{remainder}; r_1 \ \vdots ] Digits (r_i) read from bottom to top give the base‑(b) number.

  2. Formulaic
    [ N = \sum_{i=0}^{k} d_i b^i \quad\text{where } d_i\in[0,b-1] ] Inverse: (d_i = \left\lfloor \frac{N}{b^i} \right\rfloor\bmod b).

2.2 Base‑(b) to Decimal

[ N_{(b)} = d_k d_{k-1}\dots d_0 ;\Rightarrow; N_{(10)}=\sum_{i=0}^{k} d_i b^i ]

2.3 Base‑(b) to Base‑(c)

Step‑1: Convert to decimal.
Step‑2: Convert decimal to base‑(c).
The two‑step approach is simplest, but for large numbers use direct conversion: repeatedly divide by (c) and write remainders.

2.4 Examples

Decimal Binary Octal Hexadecimal
156 (10011100_2) (234_8) (9C_{16})
255 (11111111_2) (377_8) (FF_{16})

3. Properties of Base‑(b) Numbers

Property Statement Proof Sketch
Sum of digits Divisible by (b-1) iff number divisible by (b-1). (N=\sum d_i b^i \equiv \sum d_i (b\equiv1) \equiv \sum d_i \pmod{b-1}).
Alternating sum Divisible by (b+1) iff alternating sum of digits divisible by (b+1). (b \equiv -1 \pmod{b+1}).
Divisibility by (b^k-1) A number divisible by (b^k-1) iff the sum of its (k)-digit blocks is divisible by (b^k-1). Group digits into blocks of length (k).
Reversal symmetry For a palindrome in base‑(b), (N \equiv N) – trivial. Useful in constructing numbers with specific remainders.

4. Divisibility Rules (General)

Divisor Base‑(b) Rule Example
(b-1) Sum of digits (4567_8): (4+5+6+7=22). Since (22) not multiple of (7), (4567_8) not divisible by (7_{10}).
(b+1) Alternating sum of digits (1234_5): (1-2+3-4=-2). Since (-2) not multiple of (6), not divisible.
(b) Last digit zero

Your note

Page 1

Doubt hai is topic me?

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