Number Systems Quick Reference
Overview of Number Systems
- A number system is a method of representing numbers using a specific set of symbols and mathematical rules.
- Computers store and process all data (text, images, sound, video, code, memory addresses) as strings of binary bits ( and ).

Primary Number Systems
Decimal Number System (Base 10):
- Uses ten digits: .
- Used in everyday human life and standard arithmetic.
- Place values are powers of ( to the left of decimal point; to the right).
Binary Number System (Base 2):
- Uses two digits: and .
- Forms the foundation of digital systems and electronic computing.
- Place values are powers of ().
Octal Number System (Base 8):
- Uses eight digits: .
- Used in computer programming and Linux/Unix file permissions as a compact binary representation.
- Place values are powers of (). Each octal digit maps to binary bits.
Hexadecimal Number System (Base 16):
- Uses sixteen symbols: .
- Letter equivalences: , , , , , .
- Used for memory addressing and low-level data handling.
- Place values are powers of (). Each hex digit maps to binary bits.
Digit Significance and Complements
Bit Positions:
- Most Significant Bit (MSB): Leftmost bit holding the highest place value.
- Least Significant Bit (LSB): Rightmost bit holding the lowest place value.
Decimal Complements:
- 9's Complement: Subtract each digit of a base-10 number from 9$.\n - **10's Complement**: Add 1 to the LSB of its 9's complement.\n\n- **Binary Complements**:\n - **1's Complement**: Flip all bits (0 \rightarrow 11 \rightarrow 0).\n - **2's Complement**: Add 1 to the LSB of its 1's complement.\n\n# Binary Arithmetic Operations\n\n- **Binary Addition Rules**:\n - 0 + 0 = 00)\n - 0 + 1 = 10)\n - 1 + 0 = 10)\n - 1 + 1 = 01)\n\n- **Binary Subtraction Rules**:\n - 0 - 0 = 00)\n - 0 - 1 = 11)\n - 1 - 0 = 10)\n - 1 - 1 = 00)\n\n- **Binary Multiplication Rules**:\n - 0 \times 0 = 0\n - 0 \times 1 = 0\n - 1 \times 0 = 0\n - 1 \times 1 = 1\n\n- **Binary Division**:\n - Executed using long division rules analogous to decimal division.\n\n# Base Conversion Methods\n\n- **Decimal to Target Base (b)**:\n - Divide the decimal number repeatedly by base b.\n - Record remainders until the quotient is 0$.
- Read remainders in reverse order (bottom to top).
Target Base () to Decimal:
- Multiply each digit by , where is the position index from right (starting at 0).
- Sum all resulting products.
Binary Octal:
- Binary to Octal: Group binary bits into sets of starting from LSB to MSB; map each group to its octal digit.
- Octal to Binary: Replace each octal digit with its -bit binary equivalent.
Binary Hexadecimal:
- Binary to Hexadecimal: Group binary bits into sets of starting from LSB to MSB; map each group to its hexadecimal symbol.
- Hexadecimal to Binary: Replace each hex symbol with its -bit binary equivalent.
Octal Hexadecimal:
- Convert through binary as an intermediate step (e.g., Octal 3-bit Binary Group by 4 Hexadecimal).