Encoding numbers
About this lesson

In everyday life we use the decimal system: ten digits (0–9), with each place worth 10 times the one before. A computer works with electrical signals: a signal is either on (1) or off (0). So everything in a computer — numbers, text, pictures — is encoded with just two digits, 0 and 1. This is the binary number system. One binary digit is a bit; 8 bits make 1 byte. In a binary number the place values double from right to left: 1, 2, 4, 8, 16, 32, 64, 128. To convert binary to decimal, add the values of the places holding 1: 1101 → 8 + 4 + 0 + 1 = 13. To convert decimal to binary, keep dividing by 2, write down the remainders, then read them from last to first: 13 ÷ 2 = 6 r 1, 6 ÷ 2 = 3 r 0, 3 ÷ 2 = 1 r 1, 1 ÷ 2 = 0 r 1 → 1101. Another way: take away the largest place value that fits: 13 = 8 + 4 + 1 → 1101. Adding a 0 to the end of a binary number doubles it: 11 (three) → 110 (six). One byte can hold 256 different numbers, from 0 to 255.
What the book shows
In grade 6 the computer science textbook covers how a computer is built and works, encoding numbers, electronic presentations, the properties of algorithms and loops, variables in programs, and email. Each topic gives a short explanation, an example and a task done on or off the computer.
Textbook link:
This is not the textbook’s text but a short description of the topic. Check the exact page in your own textbook.
The lesson step by step
- 1
Warm-up5 min
Lit and unlit bulbs.
- 2
New topic10 min
Decimal and binary.
- 3
Practice10 min
Bits and bytes.
- 4
Game10 min
Ways to convert.
- 5
Wrap-up5 min
A worked example.
Let’s understand
For the student Simple language

| Decimal | Binary | Place values |
|---|---|---|
| 1 | 1 | 1 |
| 2 | 10 | 2 |
| 5 | 101 | 4 + 1 |
| 8 | 1000 | 8 |
| 13 | 1101 | 8 + 4 + 1 |
For the parent
How to help
- Play binary finger counting: each finger has a value (1, 2, 4, 8, 16), and a raised finger means 1.
For the teacher
Lesson goals
- Explain that computers store numbers in binary, know what a bit and a byte are, and convert small numbers between decimal and binary.
How to teach it
- Hands-on computer work, unplugged modelling, pair work, mini-project
Differentiation
- Weaker pupils follow the model step by step; stronger pupils design and test their own task
Questions for the class
- How can every number be written with just two digits?
How to check
The pupil explains why binary is used, knows bits and bytes, and converts small numbers both ways.
Scientific Scientific language
Light bulbs
You can show binary with bulbs: a lit bulb is 1, an unlit one is 0.
Colours
On a screen the red, green and blue parts of each colour are also coded as numbers from 0 to 255 — one byte each.
Self-study
Step by step
- I explained binary.
- I know bits and bytes.
- I converted binary to decimal.
- I converted decimal to binary.
Going deeper
Scientific language: for older students, parents and teachers.
The German scholar Gottfried Leibniz described the binary system in detail around 1700 — long before computers.
Play and check
Which decimal number is it?
How to write it down
- Write the numbers 1 to 16 in binary.
- Convert 17, 33 and 82 to binary.
- Convert 10110 and 11111 to decimal.
How the classwork looks in the notebook
Sample: the date and heading follow this country’s notebook rules.
Watch out: common mistakes
Where it helps in life
- Electronic presentations
At home
Core
- Write your age and the day of your birthday in binary.
Extra ⭐
- What is the largest number five bulbs can show? Explain.
How to do it
- Do the task with a grown-up.
- Explain in words what you noticed.
Answers for parents
17 = 10001, 33 = 100001, 82 = 1010010. 10110 = 16 + 4 + 2 = 22; 11111 = 16 + 8 + 4 + 2 + 1 = 31. Five bulbs: 11111 = 31.
Step-by-step homework solution — Show the solution (try it yourself first)
Step by step
- Convert 25 to binary. 25 ÷ 2 = 12 r 1; 12 ÷ 2 = 6 r 0; 6 ÷ 2 = 3 r 0; 3 ÷ 2 = 1 r 1; 1 ÷ 2 = 0 r 1. Read the remainders from the end: 11001. Check: 16 + 8 + 1 = 25.
How the homework looks in the notebook
Sample: the date and heading follow this country’s notebook rules.