☰ Contents · Computing

Number systems

Lessons 4 · 1 lessons · B. Boltayev, M. Mahkamov, A. Azamatov, S. Rahmonqulova. Informatics and Information Technologies, Grade 7. Revised and expanded third edition. “O‘zbekiston milliy ensiklopediyasi” State Scientific Publishing House, Tashkent, 2017
4

About number systems

Textbook: pp. 21–28
GoalExplains number system, digit, number and base, tells positional and non-positional systems apart, counts in systems of different bases and writes a number in compact and expanded form.
New words
number system: a set of digits together with rules for writing numbers · sanoq sistemasibase: the number of digits used in the system · sistema asosipositional system: the value of a digit depends on its place in the number · pozitsiyali sistemaexpanded form: a number written as a sum of its digits times powers of the base · yoyiq ko‘rinish
Explanation

A number system is a set of digits (signs) for writing numbers together with the rules for using them. The number of digits in the system is its base: in the decimal system the base is 10 (digits 0 to 9), in the binary system it is 2 (0 and 1). One-place signs are digits, many-place writings made of them are numbers: 5, 6, 8 are digits, 568 is a number. In the past various peoples used five-based, twelve-based, twenty-based (Maya) and sixty-based (Babylonian) systems; the 60 minutes of an hour and the 12 + 12 hours of a day remind us of this. In a positional system the value of a digit depends on its place (position) in the number: in 333 the three 3s mean 300, 30 and 3. The Roman system is not positional: in XXX each X always means 10. A system with base p has digits from 0 to p – 1; when the base is above 10, letters A, B, C, … are added (in base 16, A = 10, …, F = 15). The next number is made by “shifting” the last digit, while the largest digit turns into 0 and shifts its left neighbour. In every positional system its own base is written “10”, so the base is shown as a subscript: 101₂, 101₈. In expanded form a number is written as the sum of its digits times powers of the base: 4072 = 4 · 10³ + 0 · 10² + 7 · 10¹ + 2 · 10⁰. One of the scholars who spread today’s decimal positional system was Muhammad al-Khwarizmi (born in Khorezm, about 780–850): his treatise on Hindu arithmetic was translated into Latin, and its opening words “Dixit Algorizmi” gave rise to the word “algorithm”.

Worked examples
Counting in base 3: 0, 1, 2, 10, 11, 12, 20, 21, 22, 100 … Here 2 is the largest digit, so after 2 comes 0 and the left digit shifts: after 22 comes 100.
The expanded form of 1011₂ is 1 · 2³ + 0 · 2² + 1 · 2¹ + 1 · 2⁰; dropping the zero term, we may write 1 · 2³ + 1 · 2¹ + 1 · 2⁰.
Class activity

“Finger system”: pupils use their fingers as a counting tool and “show” numbers in base 5 (one hand per place); a partner reads them.

Practice
1
Write the three numbers after 44 in base 5.
2
Write 4072 in expanded form and say what the digit 7 means in it.
3
Why can the digit 5 not appear in a base-5 number?
4
Why is the Roman system called non-positional?