VITEEE /Aptitude

Number Systems & Simplification

Numerical Ability · free study notes

VITEEE – Aptitude

Topic: Number Systems & Simplification

Aim of the section
Test students’ ability to convert, manipulate and simplify numbers in various bases, compute with binary/hexadecimal/Octal, and use properties of number systems for quick mental math and problem solving.


1. Fundamental Concepts

Symbol Meaning Example
b Base (radix) b = 10 for decimal
n Digit (0 ≤ n < b) In base 8, digits 0–7
B Big‑Endian vs. Little‑Endian For binary 1010 → decimal 10
d Decimal value d = Σ (digit_i × b^i)

Decimal to Base-(b) Conversion

  1. Divide the number by (b).
  2. Record the remainder (least significant digit).
  3. Repeat with the quotient until it becomes 0.
  4. Read remainders in reverse order.

Base-(b) to Decimal
(N = \sum_{i=0}^{k} d_i \times b^i) where (d_i) is the (i^{th}) digit from right (LSB).


2. Binary‑Decimal‑Hexadecimal‑Octal Relationships

Base Digit Set Notation Common Conversions
2 0,1 1010₂ 1010₂ = 10₁₀
8 0–7 172₈ 172₈ = 122₁₀
10 0–9 456₁₀ —
16 0–9, A–F 1C₁₆ 1C₁₆ = 28₁₀

Key Property

  • Power of 2: (2^0=1, 2^1=2, 2^2=4, 2^3=8, 2^4=16,\dots)
  • Power of 4: (4^0=1, 4^1=4, 4^2=16, 4^3=64,\dots)
  • Power of 8: (8^0=1, 8^1=8, 8^2=64,\dots)

Use these to group bits:

  • 4 bits → 1 hex digit
  • 3 bits → 1 octal digit

3. Simplification Techniques

3.1. Binary Arithmetic

Operation Rule Example
Addition Add bitwise, carry 1 when sum ≥ 2 1011₂ + 1101₂ = 11000₂
Subtraction Borrow 1 from next higher bit (like decimal) 1101₂ – 101₁₂ = 1000₂
Multiplication Shift left by n bits = multiply by (2^n) 101₁₂ × 10₂ = 10100₂
Division Shift right by n bits = divide by (2^n) 10100₂ ÷ 10₂ = 101₁₂

3.2. Hexadecimal Arithmetic

  • Convert to binary → perform bitwise → convert back to hex.
  • Multiplication trick: Multiply by 16 → append 0 in hex (shift left 4 bits).
  • Division by 16: Remove the last hex digit.

3.3. Octal Arithmetic

  • Similar to hex, but shift left/right by 3 bits = multiply/divide by 8.

3.4. Simplifying Mixed‑Base Expressions

  1. Convert all to decimal (or a common base).
  2. Simplify using arithmetic rules.
  3. Convert back if required.

Example
[ \frac{110₁₀ - 12₈}{3₈} ]

  • Convert (12₈ = 1×8 + 2 = 10₁₀).
  • Convert (3₈ = 3₁₀).
  • Compute (110₁₀ - 10₁₀ = 100₁₀).
  • Divide (100₁₀ ÷ 3₁₀ = 33.\overline{3}).
  • If needed, express back in octal: (33.\overline{3}_{10} = 51.\overline{5}_8).

4. Useful Formulas & Tricks

Topic Formula / Trick Use Case
Sum of first n integers (\displaystyle \frac{n(n+1)}{2}) Quick mental addition
Sum of squares (\displaystyle \frac{n(n+1)(2n+1)}{6}) Counting in grids
Binary complement ~x = all bits flipped Subtraction via two’s complement
Hex to Binary 1 hex digit = 4 binary bits Direct mapping
Octal to Binary 1 octal digit = 3 binary bits Direct mapping
Divisibility in base 10 Sum of digits for 3, 9 Simplify large numbers
Divisibility in base 8 Sum of digits for 7 Quick checks
Divisibility in base 16 Sum of hex digits for 15 (F) Quick checks

5. Common Pitfalls

Pitfall Why it Happens How to Avoid
Mishandling leading zeros Forget that 010₂ is 2, not 8 Always convert to decimal first
Incorrect bit shifting Mixing up left vs. right shift Remember: left → multiply, right → divide
Base‑confusion in subtraction Subtracting octal from decimal without conversion Use a common base
Assuming 10→8 conversion is 1:1 10 in decimal is 12 in octal, not 10 Practice conversion tables
Forgetting two’s complement bias Negatives in binary mis‑interpreted Use ~x + 1 for negative numbers

6. Hard Practice Question (Exam‑Style)

**

Your note

Page 1

Doubt hai is topic me?

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