Numbers are everywhere-in counting money, measuring distances, or even programming computers. But did you know that the way we write numbers depends on the number system we use? The most common system is the decimal system, which is base-10, meaning it uses ten digits (0 through 9).
However, other number systems exist and are very important, especially in fields like computing and digital electronics. One such system is the octal number system, which is base-8. This means it uses only eight digits: 0, 1, 2, 3, 4, 5, 6, and 7.
Understanding the octal system is crucial for competitive exams and technical fields because it offers a compact way to represent binary numbers and simplifies certain calculations. In this chapter, we will explore the octal system from the ground up, learn how to convert between octal and other systems, perform arithmetic in octal, and apply these concepts to real-world problems, including examples involving Indian Rupees (INR).
The octal number system is a positional numeral system with base 8. This means each digit in an octal number represents a power of 8, depending on its position.
Valid digits: 0, 1, 2, 3, 4, 5, 6, 7
Unlike the decimal system, which uses digits 0 to 9, octal digits never exceed 7.
Just like in decimal where the rightmost digit represents units (100), the next digit to the left represents tens (101), then hundreds (102), and so on, octal place values are powers of 8:
For example, consider the octal number 3458. It can be expanded as:
\[3 \times 8^2 + 4 \times 8^1 + 5 \times 8^0 = 3 \times 64 + 4 \times 8 + 5 \times 1 = 192 + 32 + 5 = 229\]
The decimal system is base-10, so each place value is a power of 10, and digits range from 0 to 9. In octal, the base is 8, so digits range from 0 to 7, and place values are powers of 8.
This difference means that the same sequence of digits can represent different values in decimal and octal. For example, 157 in decimal is one hundred fifty-seven, but 1578 in octal is:
\[1 \times 8^2 + 5 \times 8^1 + 7 \times 8^0 = 64 + 40 + 7 = 111 \text{ in decimal}\]
Understanding this distinction is key to correctly interpreting and converting numbers between systems.
Converting numbers between octal and decimal is essential to understand their actual values and to perform calculations.
To convert an octal number to decimal, expand it using its place values and sum the results.
For an octal number \(d_k d_{k-1} \ldots d_1 d_0\), its decimal value \(N\) is:
\[N = \sum_{i=0}^{k} d_i \times 8^i\]
where \(d_i\) is the digit at position \(i\) (starting from 0 at the rightmost digit).
To convert a decimal number to octal, use the repeated division method:
graph TD A[Start] --> B{Convert Octal to Decimal?} B -- Yes --> C[Expand using place values] C --> D[Sum all terms] D --> E[Decimal number obtained] B -- No --> F{Convert Decimal to Octal?} F -- Yes --> G[Divide decimal by 8] G --> H[Record remainder] H --> I{Is quotient zero?} I -- No --> G I -- Yes --> J[Write remainders in reverse order] J --> K[Octal number obtained]Binary (base-2) and octal (base-8) systems are closely related because 8 is a power of 2: \(8 = 2^3\). This means each octal digit corresponds exactly to 3 binary digits (bits).
This relationship allows quick conversion between octal and binary without converting through decimal.
| Octal Digit | Binary Equivalent (3 bits) |
|---|---|
| 0 | 000 |
| 1 | 001 |
| 2 | 010 |
| 3 | 011 |
| 4 | 100 |
| 5 | 101 |
| 6 | 110 |
| 7 | 111 |
To convert octal to binary: Replace each octal digit by its 3-bit binary equivalent.
To convert binary to octal: Group binary digits in sets of three starting from the right, then convert each group to its octal digit.
Arithmetic in octal follows the same principles as in decimal but with base 8. This means:
Let's see these in action through examples.
Step 1: Write the place values of each digit:
\(1 \times 8^2, 5 \times 8^1, 7 \times 8^0\)
Step 2: Calculate each term:
\(1 \times 64 = 64\)
\(5 \times 8 = 40\)
\(7 \times 1 = 7\)
Step 3: Add the results:
\(64 + 40 + 7 = 111\)
Answer: 1578 = 111 (decimal)
Step 1: Divide 125 by 8:
125 / 8 = 15 remainder 5
Step 2: Divide quotient 15 by 8:
15 / 8 = 1 remainder 7
Step 3: Divide quotient 1 by 8:
1 / 8 = 0 remainder 1
Step 4: Write remainders in reverse order:
1 7 5
Answer: 125 (decimal) = 1758
Step 1: Add the rightmost digits: 7 + 5 = 12 (decimal)
Since 12 decimal = 14 octal (1 x 8 + 4), write 4 and carry 1.
Step 2: Add the next digits plus carry: 2 + 3 + 1 (carry) = 6 (octal)
Step 3: Write the result digits: 6 (left), 4 (right)
Answer: 278 + 358 = 648
Step 1: Multiply rightmost digit: 2 x 7 = 14 decimal
14 decimal = 16 octal (1 x 8 + 6), write 6 and carry 1.
Step 2: Multiply next digit and add carry: 1 x 7 + 1 = 8 decimal
8 decimal = 10 octal (1 x 8 + 0), write 0 and carry 1.
Step 3: Since no more digits, write carry 1 to the left.
Answer: 128 x 78 = 1068
Step 1: Convert each octal digit to 3-bit binary:
Step 2: Combine the binary triplets:
011 100 101
Answer: 3458 = 0111001012
When to use: When converting between octal and binary to avoid lengthy calculations.
When to use: During base conversion problems in exams for accuracy and speed.
When to use: When performing arithmetic operations in octal to avoid errors.
When to use: To relate abstract number systems to practical examples, enhancing retention.
When to use: When converting large binary numbers to octal during time-pressured exams.
Progress tracking is paywalled — subscribe to mark subtopics as understood and save your streak.
Go to practice →