0. Mathematics For Computer Science - RavikanthEragapati/Interview GitHub Wiki

Mathematics

Number Theory

  1. Prime numbers
  2. Odd numbers
  3. Even numbers
  4. Rational numbers
  5. Whole numbers

Types of Number Systems

  1. Decimal Number System (base 10)
     For example, 12265 has place values as,

     (1 × 104) + (2 × 103) + (2 × 102) + (6 × 101) + (5 × 100)
     = (1 × 10000) + (2 × 1000) + (2 × 100) + (6 × 10) + (5 × 1)
     = 10000 + 2000 + 200 + 60 + 5
     = 12265
  1. Binary Number System (base 2)
     For example, 19 has place values as, 10011

     = 2^4 + 0^3 + 0^2 + 2^1 + 2^0
     = 2*2*2*2 + 0 + 0 + 2 + 1
     = 16 + 0 + 0 + 2 + 1 = 19

  1. Octal Number System
  2. Hexadecimal Number System
  3. Roman Number System