VITEEE /Aptitude

Number Systems & Simplification

Numerical Ability · free study notes

Number Systems & Simplification

Aptitude – VITEEE
University‑level (MIT–style) notes – first principles, theory, edge cases, and a challenge problem.


1. Introduction

Number systems are the foundation of all arithmetic, algebra, and computer science. They provide the language for representing quantities, performing calculations, and encoding information.

Key Questions

  • What are the different bases?
  • How do we convert between them?
  • What algebraic properties hold in each system?
  • How do we simplify expressions in mixed bases?

These notes will build from the basics to advanced topics such as positional notation, modular arithmetic, and number‑system‑based simplification techniques.


2. Positional Notation – First Principles

2.1 Definition

In base (b) ((b \ge 2)), a number (N) is represented as:

[ N = d_{k}b^{k} + d_{k-1}b^{k-1} + \dots + d_{1}b + d_{0} ]

where each digit (d_{i}) satisfies (0 \le d_{i} < b).

2.2 Uniqueness

Theorem (Uniqueness of Representation)
For a fixed base (b) and any integer (N), the representation above is unique.

Proof Sketch:
Assume two representations exist. Subtract them; the difference is a polynomial in (b) that evaluates to zero. Since (|b| > 1), the only way this can happen is if all coefficients are zero, implying the two representations are identical. ∎

2.3 Zero and Negative Numbers

  • Zero: All digits are zero.
  • Negative Numbers: Use a sign bit (most significant bit) or two’s complement in binary. In other bases, a prefix ‘−’ is conventionally used.

3. Converting Between Bases

3.1 Integer Part

Repeated Division Method

  1. Divide the number by (b).
  2. Record the remainder (r_0).
  3. Replace the number with the integer quotient and repeat.
  4. The remainders read in reverse order give the digits (d_0, d_1, \ldots).

Example (Dec → Bin)
(45_{10})

  • 45 ÷ 2 = 22, r = 1
  • 22 ÷ 2 = 11, r = 0
  • 11 ÷ 2 = 5, r = 1
  • 5 ÷ 2 = 2, r = 1
  • 2 ÷ 2 = 1, r = 0
  • 1 ÷ 2 = 0, r = 1
    Digits: 101101₂

3.2 Fractional Part

Repeated Multiplication Method

  1. Multiply the fractional part by (b).
  2. The integer part becomes the next digit.
  3. Repeat with the new fractional part.
  4. Stop when the fractional part becomes zero or after desired precision.

Example (Dec → Bin)
(0.625_{10})

  • 0.625×2 = 1.25 → digit 1, frac 0.25
  • 0.25×2 = 0.5 → digit 0, frac 0.5
  • 0.5×2 = 1.0 → digit 1, frac 0.0
    Result: 0.101₂

3.3 Edge Cases

  • Non‑terminating Fractions: In base (b), a decimal fraction terminates iff its denominator (in lowest terms) divides a power of (b).
  • Large Numbers: Use logarithms: (\lfloor \log_b N \rfloor + 1) gives the number of digits.

4. Algebraic Properties in Different Bases

Property Binary Decimal Octal Hexadecimal
Addition XOR + Carry Standard Standard Standard
Multiplication Shift & Add Standard Standard Standard
Modulo Last (k) bits Last (k) digits Last (k) digits Last (k) digits
Division Long Division Long Division Long Division Long Division

Key Insight: In binary, the modulus operation is trivial: (N \bmod 2^k) equals the last (k) bits.


5. Simplification Techniques

5.1 Simplifying Mixed‑Base Expressions

  1. Convert all terms to a common base (usually decimal for mental math).
  2. Perform arithmetic in that base.
  3. Convert the result back to the desired base.

Example
Simplify (101_2 + 13_{10} + 7_8).

  • Convert to decimal:
    • (101_2 = 5)
    • (13_{10} = 13)
    • (7_8 = 7)
  • Sum: (5+13+7 = 25).
  • Convert back to binary: (25_{10} = 11001_2).

5.2 Using Modular Arithmetic for Quick Checks

  • Rule: If two numbers are congruent modulo (b), their remainders in base (b) are equal.
  • Application: To test if a large number is divisible by (b), compute its remainder using modulo by powers of 2 or digit sums (e.g., divisibility by 9 or 11 in decimal).

5.3 Edge Cases in Simplification

Situation Simplification Strategy
Negative base (e.g., base (-2)) Use alternating sign weights; conversions similar but with sign adjustments.
Non‑integer bases (e.g., base (\phi)) Represent numbers as linear combinations of powers of (\phi); use the golden ratio’s properties (e.g., (\phi^2 = \phi + 1)).
Mixed radix systems (e.g., time: 60‑based minutes, 24‑based hours) Treat each position as a different modulus; convert by successive division by the base of the next lower digit.

6. Advanced Topics – A Deeper Dive

6.1 Two’s Complement and Signed Numbers

  • Representation of negative integers in binary using (2^n - |x|).
  • Arithmetic operations naturally accommodate negative numbers.
  • Property: Adding a number and

Your note

Page 1

Doubt hai is topic me?

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