Introduction
Every number can be represented in different bases - the most common being base 10 (decimal). In aptitude exams, you may need to convert numbers between bases such as binary (base 2), octal (base 8), or hexadecimal (base 16). Understanding these conversions helps in pattern recognition, digital computation, and logical reasoning questions.
Pattern: Base System Conversion
Pattern
Base system conversion means representing the same number using different bases by repeatedly dividing (for base conversion down) or multiplying (for base conversion up).
- Formula 1 - Converting from Base 10 (Decimal) to Another Base (b):
Divide the number repeatedly by b and write down the remainders in reverse order.
Example: To convert 25₁₀ to base 2 → divide by 2 repeatedly.
25 ÷ 2 = 12 R1 → 12 ÷ 2 = 6 R0 → 6 ÷ 2 = 3 R0 → 3 ÷ 2 = 1 R1 → 1 ÷ 2 = 0 R1 → Answer = 11001₂ - Formula 2 - Converting from Any Base (b) to Base 10:
Multiply each digit by its place value (base power) and add.
Value = (dₙ × bⁿ) + (dₙ₋₁ × bⁿ⁻¹) + ... + (d₀ × b⁰)
Example: Convert 1101₂ to base 10 → (1×2³) + (1×2²) + (0×2¹) + (1×2⁰) = 13₁₀ - Formula 3 - Between Non-Decimal Bases (e.g., Binary ↔ Octal / Hexadecimal):
Convert the number first to base 10 (decimal), then to the required base.
OR, for binary ↔ octal/hex, use group-based shortcuts:- Binary to Octal → group 3 bits → convert each group to an octal digit.
- Binary to Hexadecimal → group 4 bits → convert each group to a hexadecimal digit (A=10, B=11, …, F=15).
- Formula 4 - Fractional Conversion (for advanced questions):
For fractions, multiply repeatedly by the base and take integer parts in sequence.
Step-by-Step Example
Question
Convert 45₁₀ to binary (base 2).
Solution
-
Step 1: Divide repeatedly by 2:
45 ÷ 2 = 22 R1
22 ÷ 2 = 11 R0
11 ÷ 2 = 5 R1
5 ÷ 2 = 2 R1
2 ÷ 2 = 1 R0
1 ÷ 2 = 0 R1 -
Step 2: Write remainders in reverse order:
Reading from last to first remainder → 101101 -
Final Answer:
45₁₀ = 101101₂ -
Quick Check:
(1×32) + (0×16) + (1×8) + (1×4) + (0×2) + (1×1) = 32 + 8 + 4 + 1 = 45 ✅
Quick Variations
1. Convert binary to octal or hexadecimal directly using groupings (3 bits for octal, 4 for hex).
2. Convert octal or hex to binary by replacing each digit with its 3- or 4-bit equivalent.
3. Fractional base conversions by multiplying fractional parts repeatedly by target base.
Trick to Always Use
- Step 1: For base ↓ conversion → use repeated division.
- Step 2: For base ↑ conversion → use positional multiplication.
- Step 3: Binary ↔ Octal/Hex → use group-of-3 or group-of-4 bit shortcuts.
Summary
Summary
- Base system conversion is about representing the same value in different numeral systems.
- For decimal → other base: divide repeatedly by base, read remainders backward.
- For other base → decimal: multiply digits by powers of base and sum.
- Binary ↔ Octal/Hex conversions are easiest with 3-bit/4-bit group patterns.
