Number System Notes 2018
Number System Notes 2018
Date: 03-03-2018
NUMBER SYSTEM
INTRODUCTION
Alternatively, a number system can be defined as a set of values used to represent quantity.
Since prehistoric times, humans have counted on their fingers. For counting beyond ten, they
started using stones, pebbles, or sticks to mark or indicate values. This kind of counting uses
an additive approach, also known as a non-positional number system.
In this system, we use symbols to indicate a value. Each symbol represents the same value
regardless of its position in a number. To find the value of a number, one has to count the
number of symbols present. For example, the value one can be represented with a single line,
two with double lines, three with triple lines, and so on.
Example:
In positional number system there exist few symbols called digits. These digits represent
different values depending on the position they occupy in number. The value in each digit is
determined by three considerations
1. Digit itself
2. Position of digit in number
3. Base of the number system
Summation Form
The value of the number N can be expressed as a sum of its digits multiplied by their
respective weights:
(𝑁)𝑏 = ∑ 𝑑𝑖 𝑏 . ∑ 𝑑𝑖 𝑏 𝑖
𝑖
𝑖=0 𝑖=−1
Example
28.52610
2 𝑥 21 + 8 𝑥 20 + 5 𝑥 2−1 + 2 𝑥 2 −2
+ 6 𝑥 2−3
Summation
Mathematical formulas often require adding many variables. Summation, or sigma notation,
is a convenient and simple form of shorthand used to concisely express the sum of a
variable's values.
Let x1,x2,x3,…,xn denote a set of n numbers. Here, x1 is the first number in the set, and xi
represents the i-th number in the set.
The summation sign (∑): This symbol, the Greek upper-case letter Sigma, instructs us to sum
the elements of a sequence. The expression for a typical element to be summed is placed to
the right of the summation sign.
The variable of summation: This is the variable being summed, also known as the index. It is
typically represented by a letter like i, j, or t and is placed beneath the summation sign. The
index starts at the lower limit and increments by one until it reaches the upper limit.
The lower limit of summation: This is the starting value for the index.
The upper limit of summation: This is the stopping value for the index.
∑ 𝑥𝑖 = 𝑥1 + 𝑥2 + 𝑥3 + ⋯ + 𝑥𝑛
𝑖=1
Here:
Summation sign
𝑛
Summation sign
∑ 𝑥𝑖
𝑖=1
∑ xi = This expression means sum the values of x, starting at x1 and ending with xn .
𝑖=1
∑ 𝑥𝑖 = 𝑥1 + 𝑥2 + 𝑥3 + … … . . +𝑥𝑛
𝑖=1
10
∑ xi = This expression means sum the values of x, starting at x1 and ending with x10 .
𝑖=1
10
∑ 𝑥𝑖 = 𝑥1 + 𝑥2 + 𝑥3 + 𝑥4 + 𝑥5 + 𝑥6 + 𝑥7 + 𝑥8 + 𝑥9 + 𝑥10
𝑖=1
10
∑ xi = This expression means sum the values of x, starting at x3 and ending with x10 .
𝑖=3
10
∑ 𝑥𝑖 = 𝑥3 + 𝑥4 + 𝑥5 + 𝑥6 + 𝑥7 + 𝑥8 + 𝑥9 + 𝑥10
𝑖=1
∑ 𝑥 The limits of summation are often understood to mean i = 1 through n. Then the
notation below and above the summation sign is omitted. Therefore this expression means
sum the values of x, starting at x1 and ending with xn.
∑ 𝑥 = 𝑥1 + 𝑥2 + … . + 𝑥𝑛
Binary Decimal
Decimal { Octal Binary { Octal
Hexadecimal Hexadecimal
Binary Binary
Octal { Decimal Hexadecimal { Octal
Hexadecimal decimal
Decimal to Binary
STEPS:
1. 197110
Remainder Method
2 1971 Reminder
2 985 -1 LSB
2 492 -1
2 246 0
2 123 0
2 61 -1
2 30 -1
2 15 0
2 7 -1
2 3 -1
2 1 -1
0 -1 MSB
(1971)10 = (11110110011)2
2. 4510
2 45 Reminder
2 22 -1 LSB
2 11 -1
2 5 -1
2 2 0
2 1 0
0 -1 MSB
(45)10 = (100111)2
3. 12510
2 125 Reminder
2 62 1 LSB
2 31 0
2 15 1
2 7 1
2 3 1
2 1 1
0 1 MSB
12510 = (1111101)2
4. 2110
2 21 Reminder
2 10 1 LSB
2 5 0
2 2 1
1 0 MSB
(21)10 = (10101)2
STEPS:
1. (0.75)10
Integer Number
0.75 × 2 = 1.50 1
0.50 × 2 = 1.00 1
(0.75)10 = (0.11)2
2. (0.625)10
0.25 x 2 = 0 . 5 a-2 =0
0.5 x 2 = 1 . 0 a-3 =1
3. (0.188)10
(0.188)10 = (0.00110)2
4. (0.3125)10
0.625 x 2 = 1 . 25 a-2 =0
0.25 x 2 = 0 . 5 a-3 =1
0.5 x 2 = 1 . 0 a-3 =1
(0.3125)10 = (0.0011)2
Decimal to Octal
STEPS:
1. 4510
8 45 Reminder
8 5 5
8 0 5
(45)10 = (55)8
STEPS:
Integer Number
0.75 × 8 = 6.00 6
(0.75)10= (0.6)8.
1. (0.356)10
Integer Fraction Integer Part
0.356 x 8 = 2 . 848 a-1 = 2
STEPS:
1. 4510
16 45 Reminder
16 2 13 - D
16 0 2
(45)10 = (2D) 16
STEPS:
(0.75)10= (0.C)16
Binary to decimal
STEPS:
1. 11012
1 1 0 1
Step 1 Step 2 Step 3
0
1x2 = 1x1 = 1
0 x 21 = 0 x 2 = 0
1 x 22 = 1 x 4 = 4
1 x 23 = 1 x 8 = 8
= 13
(1101)2 = (13)10
We want to Known
2-1 = ½ = 0.5
Binary Fraction to decimal Fraction
1. (101101.11)2
(101101.11)2 = (45.75)10
(45.75)10
Binary 1 0 1 1 0 1 1 1
Number
Weight of 25 24 23 22 21 20 2-1 2-2
each value
Weighted 1x32 1x16 1x8 1x4 1x2 1x1 1x0.5 1x0.25
value
Solved 32 0 8 4 0 1 0.5 0.25
Multiplication
Steps:
❖ Then add the additional Zero’s in the Left Side to get complete three bits (if there is
no complete Group).
1. 11012
001 101
1 5
11012 = (15)8
1. (101101.11)2
(101101)2 = (55.6)8
Binary to Hexadecimal
Steps:
❖ Then add the additional Zero’s in the Left Side to get complete 4 bits.
1. 11012
8 4 2 1
1 1 0 1 = 8+4+1 = 13 = D
(1101)2= (D) 16
2. (101101)2
Do the above steps or convert the grouped bits to decimal and then converts to
Hexadecimal
8 4 2 1 8 4 2 1
Binary Number 0 0 1 0 1 1 0 1
Decimal Number 2 13
Hexadecimal 2 D
(101101)2 = (2D) 16
3. (11010011)2
1 1 0 1 0 0 1 1
(11010011)2 = (D3)16
Binary Fraction to Hexadecimal Fraction
1. (101101.11)2
(101101)2 = (2DC) 16
Octal to Binary
Steps:
1. 5628
5 6 2
(562)8 = (101110010)2
1. (101101.11)2
Octal Number 5 5 6
Binary 101 101 110
Number
STEPS:
1. 11012
1 1 0 1
Step 1 Step 2 Step 3
0
1x8 = 1x1 = 1
0 x 81 = 0 x 8 = 0
1 x 82 = 1 x 64 = 64
1 x 83 = 1 x 512 = 512
= 577
(1101)2 = (577)8
2. (55.6)8
Octal Number 5 5 6
Weight of 81 80 8-1
each bit
Weighted 5x8 5x1 6 x 1/81
value = 6 x 0.75
Solved 40 5 0.75
Multiplication
(55.6)8 = (45.75)10
Octal to Hexadecimal
1. (55)8
5 5
101 101
(101101)2
0 0 1 0 1 1 0 1 (Binary Number)
2 D
1. (101101.11)2
Octal Number 5 5 6
Binary 101 101 110
Number
Now Combine the Binary number from above
101101.110
1. ABCD16
STEPS:
A B C D
D x 160 = 13 x 1 = 13
C x 161 = 12 x 16 = 192
B x 162 = 11 x 256 = 2816
A x 163 = 10 x 4096 = 40960
= 43981
(ABCD)16 = (43981)10
2. ABC16
A B C
C x 160 = 12 x 1 = 12
B x 161 = 11 x 16 = 176
A x 162 = 10 x 256 = 2560
= 2748
(ABC)16 = (2748)10
Hexadecimal Fraction to Decimal Fraction
1. (2D.C)
(2D.C)8 = (45.75)16
Steps:
• Convert Each Digit: For each digit in the hexadecimal number, write its
corresponding four-digit binary equivalent.
• Combine: Join the binary groups together in their original order to get the final binary
number.
1. ABC16
A B C
(ABC)16 = (101010111100)2
1. (2D.C)16
Steps:
• Convert to Binary: For each digit in the hexadecimal number, write its four-digit
binary equivalent.
• Group into Threes: Combine the binary digits into a single string. Then, group them
into sets of three, starting from the right. If the leftmost group doesn't have three
digits, add one or two leading zeros.
• Convert to Octal: Find the octal digit that corresponds to each three-digit binary
group.
1. ABC16
A B C
5 2 7 4
(ABC)16 = (5274)8
Hexadecimal Fraction to Decimal Fraction
1. (2D.C)16
101101.11
(2D.C) 16 = (55.6)8
Power Method
Step 1: Find the highest power of 2 that is less than or equal to your decimal number.
Step 2: Subtract this value from your decimal number to get a remainder.
Step 3: Repeat Step 1 and Step 2 with the new remainder. Continue this process until the
remainder is 0.
Step 4: To build the binary number, write a '1' for each power of 2 you subtracted. Write a '0'
for any powers of 2 you skipped.
179 - 128 = 51
51 - 32 = 19
19 - 16 = 3
7. The highest power of 2 less than 3 is 21 (2). (We skip 23 and 22)
3-2=1
1-1=0
Binary Construction Table
Reading the binary digits from top to bottom gives you the final result: (11110110011)₂.
Now, constructing the binary number based on the powers used (10, 9, 8, 7, 5, 4, 1, 0) and
skipped (6, 3, 2):
(1971)₁₀ = (11110110011)₂