Lesson 3 - Binary Maths
Lesson 3 - Binary Maths
Data representation
Ali Papila
In this lesson you will:
Count in binary
2
Converting from binary to decimal
3
Convert these numbers from binary to decimal
4
111
7 6
5
111
7 6
6
1101
14 13
7
1101
14 13
8
10110
22 21
9
10110
22 21
10
1110
11 12
13 14
11
1110
11 12
13 14
12
10000011
128 131
129 132
13
10000011
128 131
129 132
14
Converting from decimal to binary
A. 65
B. 129
C. 160
D. 210
E. 176
15
Converting from decimal to binary: solutions
16
Counting in binary
17
Counting in binary
Before you can perform addition in binary, you need to 1000 100 10 1
learn to count in binary! 0
18
Counting in binary
Before you can perform addition in binary, you need to 1000 100 10 1
learn to count in binary! 1
19
Counting in binary
Before you can perform addition in binary, you need to 1000 100 10 1
learn to count in binary! 2
20
Counting in binary
Before you can perform addition in binary, you need to 1000 100 10 1
learn to count in binary! 3
21
Counting in binary
Before you can perform addition in binary, you need to 1000 100 10 1
learn to count in binary! 4
22
Counting in binary
Before you can perform addition in binary, you need to 1000 100 10 1
learn to count in binary! 5
23
Counting in binary
Before you can perform addition in binary, you need to 1000 100 10 1
learn to count in binary! 6
24
Counting in binary
Before you can perform addition in binary, you need to 1000 100 10 1
learn to count in binary! 7
25
Counting in binary
Before you can perform addition in binary, you need to 1000 100 10 1
learn to count in binary! 8
26
Counting in binary
Before you can perform addition in binary, you need to 1000 100 10 1
learn to count in binary! 9
27
Counting in binary
There are no digits left to use in the number system, so 1000 100 10 1
we move to the next column. 9
28
Counting in binary
There are no digits left to use in the number system, so 1000 100 10 1
we move to the next column. 1 0
29
Counting in binary
And now we work our way through all of those digits 1000 100 10 1
again. 1 1
30
Counting in binary
And now we work our way through all of those digits 1000 100 10 1
again. 1 2
31
Counting in binary
And now we work our way through all of those digits 1000 100 10 1
again. 1 3
32
Counting in binary
And now we work our way through all of those digits 1000 100 10 1
again. 1 4
33
Counting in binary
And now we work our way through all of those digits 1000 100 10 1
again. 1 5
34
Counting in binary
And now we work our way through all of those digits 1000 100 10 1
again. 1 6
35
Counting in binary
And now we work our way through all of those digits 1000 100 10 1
again. 1 7
36
Counting in binary
And now we work our way through all of those digits 1000 100 10 1
again. 1 8
37
Counting in binary
And now we work our way through all of those digits 1000 100 10 1
again. 1 9
38
Counting in binary
39
Counting in binary
40
Counting in binary
41
Counting in binary
A 1 and a 0.
42
Counting in binary
A 1 and a 0.
43
Counting in binary
44
Counting in binary
45
Counting in binary
Start again... 8 4 2 1
1 1
46
Counting in binary
47
Counting in binary
48
Counting in binary
49
Counting in binary
50
Counting in binary
51
Counting in binary
No digits left! 8 4 2 1
1 1 1
52
Counting in binary
53
Counting in binary
54
Let’s count to 1010 in binary.
55
8 4 2 1
0
010
56
8 4 2 1
1
110
57
8 4 2 1
1 0
210
58
8 4 2 1
1 1
310
59
8 4 2 1
1 0 0
410
60
8 4 2 1
1 0 1
510
61
8 4 2 1
1 1 0
610
62
8 4 2 1
1 1 1
710
63
8 4 2 1
1 0 0 0
810
64
8 4 2 1
1 0 0 1
910
65
8 4 2 1
1 0 1 0
1010
66
The four golden rules of binary addition
Rule 1 0
+ 0
0+0=0 0
In decimal, 0 + 0 = 0
67
The four golden rules of binary addition
Rule 2 0
+ 1
0+1=1 1
In decimal, 0 + 1 = 1
68
The four golden rules of binary addition
Rule 3 1
+ 1
1 + 1 = 10 1 0
In decimal, 1 + 1 = 2
69
The four golden rules of binary addition
Rule 4 1
1
1 + 1 + 1 = 11 + 1
1 1
In decimal, 1 + 1 + 1 = 3
70
Binary addition
1 0 0
+ 1 0
=
Rules
● 0+0=0
● 0+1=1
● 1 + 1 = 10
● 1 + 1 + 1 = 11
71
Binary addition
1 0 0
+ 1 0
= 0
Rules
● 0+0=0
● 0+1=1
● 1 + 1 = 10
● 1 + 1 + 1 = 11
72
Binary addition
1 0 0
+ 1 0
= 1 0
Rules
● 0+0=0
● 0+1=1
● 1 + 1 = 10
● 1 + 1 + 1 = 11
73
Binary addition
1 0 0
+ 1 0
= 1 1 0
Rules
● 0+0=0
● 0+1=1
● 1 + 1 = 10
● 1 + 1 + 1 = 11
74
Binary addition
Rules
● 0+0=0
● 0+1=1
● 1 + 1 = 10
● 1 + 1 + 1 = 11
75
Binary addition
1 0 0
+ 1 0 1
=
Rules
● 0+0=0
● 0+1=1
● 1 + 1 = 10
● 1 + 1 + 1 = 11
76
Binary addition
1 0 0
+ 1 0 1
= 1
Rules
● 0+0=0
● 0+1=1
● 1 + 1 = 10
● 1 + 1 + 1 = 11
77
Binary addition
1 0 0
+ 1 0 1
= 0 1
Rules
● 0+0=0
● 0+1=1
● 1 + 1 = 10
● 1 + 1 + 1 = 11
78
Binary addition
1 0 0
+ 1 0 1
= 1 0 0 1
Rules
● 0+0=0
● 0+1=1
● 1 + 1 = 10
● 1 + 1 + 1 = 11
79
Binary addition
Rules
● 0+0=0
● 0+1=1
● 1 + 1 = 10
● 1 + 1 + 1 = 11
80
Binary addition
1 0 1
+ 1 1
=
Rules
● 0+0=0
● 0+1=1
● 1 + 1 = 10
● 1 + 1 + 1 = 11
81
Binary addition
1 0 1
+ 1 1
= 0
1
Rules
● 0+0=0
● 0+1=1
● 1 + 1 = 10
● 1 + 1 + 1 = 11
82
Binary addition
1 0 1
+ 1 1
= 0
1
Rules
● 0+0=0
● 0+1=1
● 1 + 1 = 10
● 1 + 1 + 1 = 11
83
Binary addition
1 0 1
+ 1 1
= 0 0
1 1
Rules
● 0+0=0
● 0+1=1
● 1 + 1 = 10
● 1 + 1 + 1 = 11
84
Binary addition
1 0 1
+ 1 1
= 0 0
1 1
Rules
● 0+0=0
● 0+1=1
● 1 + 1 = 10
● 1 + 1 + 1 = 11
85
Binary addition
1 0 1
+ 1 1
= 1 0 0 0
1 1
Rules
● 0+0=0
● 0+1=1
● 1 + 1 = 10
● 1 + 1 + 1 = 11
86
Binary addition
Rules
● 0+0=0
● 0+1=1
● 1 + 1 = 10
● 1 + 1 + 1 = 11
87
Are you with me so far?
88
Binary addition
1 1 1
+ 1 1
=
Rules
● 0+0=0
● 0+1=1
● 1 + 1 = 10
● 1 + 1 + 1 = 11
89
Binary addition
1 1 1
+ 1 1
= 0
1
Rules
● 0+0=0
● 0+1=1
● 1 + 1 = 10
● 1 + 1 + 1 = 11
90
Binary addition
1 1 1
+ 1 1
= 0
1
Rules
● 0+0=0
● 0+1=1
● 1 + 1 = 10
● 1 + 1 + 1 = 11
91
Binary addition
1 1 1
+ 1 1
= 1 0
1 1
Rules
● 0+0=0
● 0+1=1
● 1 + 1 = 10
● 1 + 1 + 1 = 11
92
Binary addition
1 1 1
+ 1 1
= 1 0
1 1
Rules
● 0+0=0
● 0+1=1
● 1 + 1 = 10
● 1 + 1 + 1 = 11
93
Binary addition
1 1 1
+ 1 1
= 1 0 1 0
1 1
Rules
● 0+0=0
● 0+1=1
● 1 + 1 = 10
● 1 + 1 + 1 = 11
94
Binary addition
Rules
● 0+0=0
● 0+1=1
● 1 + 1 = 10
● 1 + 1 + 1 = 11
95
Binary addition: try it yourself!
A. 100 + 1 = ?
B. 110 + 11 = ?
+
C. 101 + 100 = ?
=
D. 11 + 111 = ?
E. 1010 + 1111 = ?
Rules
● 0+0=0
● 0+1=1
● 1 + 1 = 10
● 1 + 1 + 1 = 11
96
Binary addition: solutions
A. 100 + 1 = 101
B. 110 + 11 = 1001
+
C. 101 + 100 = 1001
=
D. 11 + 111 = 1010
E. 1010 + 1111 = 11001
Rules
● 0+0=0
● 0+1=1
● 1 + 1 = 10
● 1 + 1 + 1 = 11
97
Binary shifting
98
Binary shifting
Source: Pixabay
99
Binary shifting
100
Binary shifting
101
Binary shifting
102
Binary shifting
Or
103
Binary shifting
x2 x2
104
Binary shifting
x2 x2
105
Binary shifting
x2 x2
106
Binary shifting
107
Binary shifting
1112 x 10002 = ?
108
Binary shifting
x2 x2 x2
1112 x 10002 = ?
109
Binary shifting
110
Binary shifting
111
Binary shifting
128 64 32 16 8 4 2 1
0 0 1 1 1 0 0 0
1112 x 10002 = 1110002
Or
112
Which direction do you shift to multiply?
LEFT RIGHT
113
Which direction do you shift to multiply?
LEFT RIGHT
114
Binary shifting
115
Binary shifting
116
Binary shifting
/2
117
Binary shifting
/2
128 64 32 16 8 4 2 1
0 0 0 0 0 0 1 0
1002 / 102 = 102
Or
118
Binary shifting
119
Binary shifting
120
Binary shifting
121
Binary shifting
128 64 32 16 8 4 2 1
0 0 0 0 0 0 0 1
1012 / 1002 = 12
122
Binary shifting
128 64 32 16 8 4 2 1
0 0 0 0 0 0 0 1
1012 / 1002 = 12
123
Which direction do you shift to divide?
LEFT RIGHT
124
Which direction do you shift to divide?
LEFT RIGHT
125
Binary shifting: try it yourself!
MULTIPLY 128 64 32 16 8 4 2 1
A. 11012 x 1002 = ?
B. 1112 x 102 = ?
C. 1111112 x 102 = ?
Draw a table to help you!
DIVIDE
D. 11002 / 102 = ?
E. 11100002 / 1002 = ?
F. 1100002 / 10002 = ?
126
Binary shifting: solutions
MULTIPLY 128 64 32 16 8 4 2 1
DIVIDE
127
Share your work with Oak National
If you'd like to, please ask your parent or carer to share your work on Instagram, Facebook
or Twitter tagging @OakNational and #LearnwithOak