Summary
This lesson studies positional notation, in which the value of each digit depends on the place it occupies. It proves that every natural number is written in exactly one way in any base , by a procedure that consists in dividing repeatedly by the base, and teaches how to convert numbers between base and bases , and , and between the latter by grouping binary digits. It shows that addition and multiplication are carried out in any base by the same rules as in base , explains why the divisibility tests work and extends them to other bases, and closes with a note on the history of numeration and on the use of base in computers.
Learning objectives
- Interpret positional notation and compute the value of a number written in any base.
- Prove the existence and uniqueness of the representation in base , and obtain it by successive divisions.
- Convert numbers between bases , , and , and add and multiply in base .
- Justify the divisibility tests for and for in base , and apply them in base and in other bases.
Positional notation
When we write we do not add up four digits: each one is multiplied by a power of that depends on its place. The first is worth two thousands; the second, two tens. The digit indicates that there are no hundreds and, by occupying its place, keeps the others in the places that belong to them.
This principle, called positional notation, does not depend on the number . If is a natural number, called the base, the digits in base are the numbers , and a sequence of digits , with , represents the number
The digits are written side by side, from left to right, and the base is indicated as a subscript: for example, is the number that in base is written with the digits , , and , and it is read “ in base ”. The digit is said to occupy place , counted from the right starting at . Without a subscript, a number is written in base . In base there are only two digits, and , which are called bits; in base sixteen are needed, and the letters A, B, C, D, E and F, worth , , , , and , are added to the usual ten digits.
Now, the value of a number written in base can be computed by factoring out again and again, which avoids computing powers: this is Horner’s rule.
For every and all numbers , the sum of the products is obtained by starting from and repeating times the operation of multiplying by and adding the next coefficient.
The proof is an induction on that uses only distributivity. The expression is the value at of the polynomial , and the lesson on the algebra of polynomials will return to it.
Proof
Base step: for , both sides reduce to , because the rule performs no operation.
Induction hypothesis: the rule holds for every sum of terms, with arbitrary coefficients, that goes up to the power .
Consider a sum that goes up to . By distributivity, is factored out of all the terms except the last.
The parenthesis has the form of the induction hypothesis, with the coefficients ; it is written with the rule, and multiplying it by and adding gives the rule for . By the principle of induction, it holds for every .
Compute the number that in base is written , in two ways: by adding the values of the places and with Horner’s rule.
Proof
Each digit is multiplied by the power of that corresponds to its place: , , and .
We compute the powers and the products, and add.
With Horner’s rule we factor out of the first three terms, and then out of the first two inside the parenthesis.
The computation goes from the inside out: each result is multiplied by the base and the next digit is added to it. The same value is obtained, without any power.
Loading the content…
Completed
Sign in to save your progress