Introduction
हर number को अलग-अलग bases में represent किया जा सकता है-सबसे common base 10 (decimal) है। Aptitude exams में आपको numbers को binary (base 2), octal (base 8) या hexadecimal (base 16) में convert करना पड़ सकता है। इन conversions को समझना pattern recognition, digital computation और logical reasoning में मदद करता है।
Pattern: Base System Conversion
Pattern
Base system conversion का मतलब है एक ही number को अलग base में दिखाना-base कम करने पर repeated division और base बढ़ाने पर repeated multiplication का उपयोग करें।
- Formula 1 - Base 10 (Decimal) से किसी Base (b) में Conversion:
Number को बार-बार b से divide करें और remainders को reverse order में लिखें।
Example: 25₁₀ को base 2 में convert करें:
25 ÷ 2 = 12 R1 → 12 ÷ 2 = 6 R0 → 6 ÷ 2 = 3 R0 → 3 ÷ 2 = 1 R1 → 1 ÷ 2 = 0 R1 → Answer = 11001₂ - Formula 2 - किसी Base (b) से Base 10 में Conversion:
हर digit को उसके place value (base power) से multiply करें और जोड़ें।
Value = (dₙ × bⁿ) + (dₙ₋₁ × bⁿ⁻¹) + ... + (d₀ × b⁰)
Example: 1101₂ → (1×2³) + (1×2²) + (0×2¹) + (1×2⁰) = 13₁₀ - Formula 3 - Non-Decimal Bases के बीच Conversion (जैसे Binary ↔ Octal / Hexadecimal):
पहले decimal में convert करें, फिर target base में।
OR, group-based shortcuts use करें:- Binary → Octal → 3 bits को group करें → हर group को octal digit में बदलें।
- Binary → Hex → 4 bits को group करें → हर group को hexadecimal digit में बदलें (A=10, B=11 … F=15)।
- Formula 4 - Fractional Conversion (advanced):
Fractions को target base से multiply करते जाएँ और integer parts को sequence में लिखें।
Step-by-Step Example
Question
45₁₀ को binary (base 2) में convert करें।
Solution
-
Step 1: बार-बार 2 से divide करें
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: Remainders को reverse order में पढ़ें
Last से first तक पढ़ने पर → 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. Binary → Octal/Hex → direct groupings (3 bits for octal, 4 bits for hex).
2. Octal/Hex → Binary → हर digit का 3-bit या 4-bit binary लिखें।
3. Fractional conversions → fractional part को बार-बार base से multiply करें।
Trick to Always Use
- Step 1: Base ↓ conversion में repeated division use करें।
- Step 2: Base ↑ conversion में positional multiplication use करें।
- Step 3: Binary ↔ Octal/Hex में group-of-3/group-of-4 सबसे आसान method है।
Summary
Summary
- Base system conversion एक ही value को अलग numeral systems में represent करना है।
- Decimal → other base: divide repeatedly, remainders backward पढ़ें।
- Other base → decimal: digits × base powers का sum।
- Binary ↔ Octal/Hex सबसे आसान group-based patterns से convert होते हैं।
