☰ خطة العام · تكنولوجيا المعلومات والاتصالات (بالإنجليزية)

Binary numbers: the language of computers

الأسبوع 24 · المحور الرابع، الدرس ٣ «مقدمة إلى الأعداد الثنائية»: النظامان العشري والثنائي · 3 دروس
2

Counting in binary

ICT P5 Term 2, Theme 4: pp. 54–57
GoalCount in binary from 1 to 31 and explain how the places double.
New words
decimal · using ten digits, 0 to 9, like the numbers we use every dayplace · the position of a digit in a number, which decides its valuedouble · to multiply by 2pattern · something that repeats in a regular way
Explanation

In the decimal system we have ten digits, 0 to 9. After 9 we run out of digits, so we add a new place on the left and write 10. Binary does the same with only two digits. After 1 we run out, so we add a new place on the left: 10 means two. The places in binary are worth 1, 2, 4, 8, 16 from the right, doubling each time. So counting goes: 1, 10, 11, 100, 101, 110, 111, 1000, 1001. Read binary numbers digit by digit: 101 is ‘one-zero-one’, not ‘one hundred one’. With five places, the largest number is 11111, which is 16 + 8 + 4 + 2 + 1 = 31. On one hand, if every finger is either up (1) or down (0), you can count to 31!

DecimalBinary
11
210
311
4100
5101
6110
7111
81000
91001
Worked examples
DecimalBinary
101010
131101
151111
1610000
Continue the count from 10: 1010 (ten), 1011 (eleven), 1100 (twelve), 1101 (thirteen), 1110 (fourteen), 1111 (fifteen). After 1111 all four places are full, so we add a fifth place: 10000 means sixteen.
odd: ends in 1even: ends in 0
Spot the pattern: the last digit goes 1, 0, 1, 0 as you count 1, 2, 3, 4. Odd numbers always end in 1, and even numbers always end in 0. Check: 7 is 111 (odd, ends in 1) and 8 is 1000 (even, ends in 0).
one handup = 1
Youssef counts on his fingers: thumb up and the rest down is 1. Index finger alone is 2. Thumb and index together are 3 (1 + 2). All five fingers up is 31. One hand can count to 31 in binary!
Class activity

Count to 20. Write the binary numbers for 10 to 20 on paper. Use the doubling places 16, 8, 4, 2, 1. Check each one with a partner. Then look for patterns: what happens to the last digit? What happens each time you reach 1111? What is the largest number you can write with five places? Draw five circles for fingers and colour the ones that are ‘up’ for the number 21.

Practice
1
Write 6 in binary.
2
What number is 1000 in binary?
3
What comes after 1011 in binary counting?
4
What is the largest number with five binary places?