0. Mathematics For Computer Science - RavikanthEragapati/Interview GitHub Wiki
Mathematics
Number Theory
- Prime numbers
- Odd numbers
- Even numbers
- Rational numbers
- Whole numbers
Types of Number Systems
- 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
- 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
- Octal Number System
- Hexadecimal Number System
- Roman Number System