PGECET /Quantitative Aptitude

Number system

Arithmetic · free study notes · Updated

📚 PGECET – Quantitative Aptitude

Topic: Number System

Goal of this section – Understand the fundamentals of number systems, how to convert between them, and how they are used in everyday problems and computing.


1️⃣ Simple Explanation

Concept What it is Why it matters
Base The number of unique digits (including zero) used to represent numbers in a system. Different systems are used for different purposes: decimal (base‑10) for everyday maths, binary (base‑2) for computers, octal (base‑8) & hexadecimal (base‑16) for low‑level programming.
Place Value The value contributed by a digit depends on its position. In base‑B, the rightmost digit has weight (B^0), next (B^1), etc. Determines how a number is built from its digits.
Conversion Translating a number from one base to another. Required in coding, digital electronics, and many aptitude questions.

2️⃣ Key Points (Study Checklist)

# Point Quick Note
1 Decimal (Base‑10) Digits 0–9. Used in everyday arithmetic.
2 Binary (Base‑2) Digits 0,1. Foundation of digital logic.
3 Octal (Base‑8) Digits 0–7. Handy shorthand for binary groups of 3.
4 Hexadecimal (Base‑16) Digits 0–9, A–F (10–15). Compact binary representation in programming.
5 Place‑value formula (N = a_kB^k + a_{k-1}B^{k-1} + \dots + a_0B^0)
6 Decimal → Binary Repeated division by 2; record remainders (reverse order).
7 Binary → Decimal Multiply each bit by its power of 2, sum.
8 Binary ↔ Octal Group bits in 3s (right‑to‑left). Convert each group to an octal digit.
9 Binary ↔ Hex Group bits in 4s (right‑to‑left). Convert each group to a hex digit.
10 Hexadecimal → Decimal Multiply each hex digit by (16^i), sum.
11 Common Pitfalls Forget to pad with leading zeros when grouping; mis‑order remainders.
12 Number System Properties - Even/odd in binary: last bit 0/1.
- Divisibility: 8 in octal, 16 in hex.
13 Practical Usage Binary for memory addresses, hex for color codes, octal in old Unix permissions.

3️⃣ Worked Example

Convert the decimal number 156 to binary, octal, and hexadecimal.

Step‑by‑Step

Operation Result Explanation
156 ÷ 2 Quotient 78, Remainder 0 1st LSB
78 ÷ 2 Quotient 39, Remainder 0 2nd LSB
39 ÷ 2 Quotient 19, Remainder 1 3rd LSB
19 ÷ 2 Quotient 9, Remainder 1 4th LSB
9 ÷ 2 Quotient 4, Remainder 1 5th LSB
4 ÷ 2 Quotient 2, Remainder 0 6th LSB
2 ÷ 2 Quotient 1, Remainder 0 7th LSB
1 ÷ 2 Quotient 0, Remainder 1 8th (MSB)

Binary (read remainders from bottom to top): 10011100


Binary → Octal

Group bits from right to left in groups of 3:

100 111 00

Pad with leading zeros if needed:

001 001 110 0 → 001 001 110 0

Now convert each group:

Group Octal
001 1
001 1
110 6
0 0 (ignore leading zero)

Octal: 176


Binary → Hexadecimal

Group bits in groups of 4:

1001 1100

Convert each group:

Group Hex
1001 9
1100 C

Hexadecimal: 9C


Verification (Decimal → Hex)

9C in hex = (9×16^1 + 12×16^0 = 144 + 12 = 156) ✔️


4️⃣ Quick Revision Summary

Concept How to Recall
Base‑10 Everyday numbers.
Binary Only 0 & 1, odd/even by last bit.
Octal Group 3 binary digits → 0–7.
Hex Group 4 binary digits → 0–9, A–F.
Conversion Decimal → Binary: divide by 2, record remainders (reverse).
Binary → Decimal: sum (bit × 2^i).
Binary ↔ Octal/Hex: group bits (3 or 4).
Place Value (N = \sum a_i B^i).
Common Tricks Pad with leading zeros when grouping. Use remainders in reverse order.

**

Your note

Page 1

Doubt hai is topic me?

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