Kvant

Rough automatic draft, low quality: expect mistakes and awkward wording. It will be replaced by a better translation. Original →

3

It would be inconvenient to do the same with all numbers encountered in practice. Further, if our needs were limited to counting within thousands, we would need to remember a thousand special characters. Naturally, for a long time people began to choose one or another series of “key” numbers and only designate them with special signs. This is, for example, the Roman numbering system, based on key numbers
1, 5, 10, 50, 100, 500 and 1000.
These numbers in the Roman numeral system represent the letters I (“i”), V (“ve”), X (“ix”), L (“el”), C (“ce”), D (“de”) and M (“em”).

Such designations were often derived from figure, once depicted corresponding numerals (I - finger, V - five with fingers placed, X - two fives), and are often abbreviations of Latin words (centum - one hundred, demimille - five hundred, mille - thousand).

Since we need the Roman numbering system only as an example, we will consider it in an older, simplified version, when the number “four” was written in the form IIII, and not in the form IV. The number 3477 in this old Roman system is written as follows: MMMSSSSCLXXVII=3·1000+4·100+50+2·10+5+2.

The cashier does the same, having banknotes in denominations of 100 rubles, 50 rubles, 25 rubles, 10 rubles, 5 rubles, 3 rubles and 1 ruble. For a cashier, numbers are key

100, 50, 25, 10, 5, 3 and 1.
Wanting to pay, say, 499 rubles, he first issues as many hundred-dollar bills as possible,

to give away too much:
499 = 4·100 + 99.

Then he issues as many 50-ruble couporas as possible in order to issue no more than the remaining 99 rubles to be paid:
499 = 4·100 + 1·50 + 49,
etc. Sometimes he may end up with a remainder less than the next key number. This will be the case in our example after issuing two ten rubles:
499 = 4·100 + 1·50 + 1·25 + 2·10 + 4.

The next key number is 5, however, since 4 < 5, there will be no need to give out five rubles. But for the painting, we can assume that 0 five rubles were given out, and include the term 0·5 in the sum. The entire procedure for issuing 499 rubles will be written like this:
499 = 4·100 + 1·50 + 1·25 + 2·10 + 0·5 + 1·3 + 1·1.

Let us now try to generalize what has been said, taking as a sequence of key numbers (“basis”) any sequence of increasing numbers:
q0=1<q1<q2<⋯<qn<…q_0 = 1 < q_1 < q_2 < \dots < q_n < \dots (1)
Let us describe how to obtain a notation for an arbitrary number NN in a system of numbers with basis (1).

In sequence (1) of key numbers there is the largest number qnq_n, not exceeding NN. Delim NN by qnq_n and we get the (incomplete) quotient ana_n and the remainder rn−1r_{n-1}:
N=anqn+rn−1N = a_nq_n + r_{n-1}, where 0⩽rn−1<qn0 \leqslant r_{n-1} < q_n.

The first remainder rn−1r_{n-1} is divided by the next key number qn−1q_{n-1}. We put
rn−1=an−1qn−1+rn−2r_{n-1} = a_{n-1}q_{n-1} + r_{n-2},
where 0⩽rn−2<qn−10 \leqslant r_{n-2} < q_{n-1}, or
N=anqn+an−1qn−1+rn−2N = a_nq_n + a_{n-1}q_{n-1} + r_{n-2}.

(Note that we do not exclude here the case when rn−1=0r_{n-1} = 0 - in this case, all subsequent quotients

4

and the remainders will be equal to zero!) Terrier new remainder rn−2r_{n-2} divided by qn−2q_{n-2}; we get

rn−2=an−2qn−2+rn−3,r_{n-2} = a_{n-2}q_{n-2} + r_{n-3},

Where

0⩽rn−3<qn−2,0 \leqslant r_{n-3} < q_{n-2},

or

N=anqn+an−1qn−1+an−2qn−2+rn−3N = a_nq_n + a_{n-1}q_{n-1} + a_{n-2}q_{n-2} + r_{n-3}

etc.

Finally, dividing the penultimate remainder r1r_1 by q1q_1, we get

N=anqn+an−1qn−1+⋯+a2q2+a1q1+r0,N = a_nq_n + a_{n-1}q_{n-1} + \dots + a_2q_2 + a_1q_1 + r_0,

where 0⩽r0<q10 \leqslant r_0 < q_1.

(Since q0=1q_0 = 1, then dividing the “last remainder” r0r_0 by it is redundant: it is clear that r0=a0q0=a0r_0 = a_0q_0 = a_0.) In practice, such multiple division is usually written together. We will show how this is done using the already discussed example of recording the amount of 499 rubles. in the “cashier system”:

499×100+499×50+499×25+499×10+499×5+499×1+499499 \times 100 + 499 \times 50 + 499 \times 25 + 499 \times 10 + 499 \times 5 + 499 \times 1 + 499

(Here all partials an,an−1a_n, a_{n-1}, etc. are typed in red numbers, and the number itself NN and remainders rn−1,rn−2r_{n-1}, r_{n-2}, etc. are in blue.)

§ 2. Positional number systems

You have probably already agreed that in the case of a basis

q0=1,q1=10,q_0 = 1, \quad q_1 = 10,

q2=102,…,qn=10n,…q_2 = 10^2, \dots, q_n = 10^n, \dots

we will be dealing with the commonly used children’s number system. But instead of writing, say,

4⋅105+0⋅104+3⋅103+0⋅102+1⋅10+74 \cdot 10^5 + 0 \cdot 10^4 + 3 \cdot 10^3 + 0 \cdot 10^2 + 1 \cdot 10 + 7

we simply write 403017.

A distracted or overly punctual cashier could prepare a record of his output, where the number of issued bills of different denominations would be recorded in separate columns. In this format, issuing 499 rubles would look like this:

| | 100 | 50 | 25 | 10 | 5 | 3 | 1 |
| :— | :— | :— | :— | :— | :— | :— | :— |
| 499 | 4 | 1 | 1 | 2 | 0 | 1 | 1 |

We can say that in the “cashier number system” the number 499 is written as

4112011.4112011.

Number systems related to those discussed in the last two examples (i.e., the decimal number system and the “cashier system”) are called positional (we will talk about the meaning of this expression below). Instead of cumbersome recording

N=anqn+an−1qn−1+⋯+a2q2+a1q1+a0N = a_nq_n + a_{n-1}q_{n-1} + \dots + a_2q_2 + a_1q_1 + a_0

in a positional number system with basis (1), it is convenient to use a more compact notation from n+1n+1 “digits”:

«anan−1…a2a1a0a_na_{n-1} \dots a_2a_1a_0».

It is assumed that the “digits” aka_k are obtained in the same way (algorithm) as described above.

From this description it is clear that in a given basis of each natural number NN is written in a unique way. Further, since the “major digit” ana_n is obtained as the quotient of the number NN divided by qnq_n, which by convention is less than qn+1q_{n+1} (for otherwise we would start by dividing NN by qn+1q_{n+1}, and not by qnq_n!), then an<qn+1/qna_n < q_{n+1}/q_n. That’s why,

6

The existence and special designation for zero, which resembled a half-closed eye:

Here are some examples of writing numbers in the Mayan system:

[1⋅20+0=20,19⋅360+13⋅20+13=7113,10⋅360+7=3607][1 \cdot 20 + 0 = 20, \quad 19 \cdot 360 + 13 \cdot 20 + 13 = 7113, \quad 10 \cdot 360 + 7 = 3607]

The main line of recording numbers in the Varian number system and the Mayan system from the Roman numbering lies precisely in the “positional” principle of these systems: while among the Romans the letter I always means one, and V - five, regardless of where these letters are located, among the ancient Babylonians and among the Mayan Indians the meaning of the “number” depends on its place, or “position”. That is why such systems for recording numbers (which includes the commonly used “decimal system” created in India in the 8th-9th centuries or a little earlier) are called positional.

Exercises

  1. Write down in the “complete cashier system” (where the “key” numbers are the following: 10000, 5000, 2500, 1000, 500, 300, 100, 50, 20, 15, 10, 5, 3, 2 and 1, corresponding to the values of all existing paper money and all coins expressed in kopecks, the amount of 233 rubles. 87 kopecks Record the transaction of transferring 23387 kopecks to the “cashier system” using “continuous division” (see page 4).

  2. Read a number written in the Varian system

  3. Read a number written in the Mayan system

(This is the largest number found in a Mayan site.)

§ 3. Number systems with a given base

This is the name for number systems with a basis

q0=d0=1,q1=d1=d,q2=d2,q3=d3,q4=d4,…,(2)q_0 = d^0 = 1, \quad q_1 = d^1 = d, \quad q_2 = d^2, \quad q_3 = d^3, \quad q_4 = d^4, \dots, (2)

where dd is any integer greater than one. This number dd is called the basic number system.

These systems include the general tenth number system with the base d=10d=10, the Varian six-decimal number system (d=60d=60) and the double number system (d=2d=2), which has recently been widely used in connection with the needs of computer technology. In the case of an arbitrary base dd one speaks of a “d-ary” number system.

In the dd-ary number system, the notation N=⟨anan−1…a2a1a0⟩N = \langle a_n a_{n-1} \dots a_2 a_1 a_0 \rangle has the following meaning:

N=andn+an−1dn−1+⋯+a2d2+a1d+a0.N = a_n d^n + a_{n-1} d^{n-1} + \dots + a_2 d^2 + a_1 d + a_0.

8

1, different or identical.
In such a number system, the numbers are written

N=⌈anan−1…a2a1a0⌉N = \lceil a_n a_{n-1} \dots a_2 a_1 a_0 \rceil

the first digit from the end a0a_0 can take d0d_0 values ​​0, 1, 2, …, d0d_0 - 1. the next digit a1a_1 can take d1d_1 values ​​from 0 to d1d_1 - 1; the digit a2a_2 can take values ​​from 0 to d2d_2 - 1, etc.

Moreover, in the number system with basis (3), as well as in the dd-ary number system (in which our system is reversed in the case of d0=d1=d2=d3=⋯=dd_0 = d_1 = d_2 = d_3 = \dots = d), any entry makes sense

N=⌈anan−1…a2a1a0⌉,N = \lceil a_n a_{n-1} \dots a_2 a_1 a_0 \rceil,

where a0,a1,a2,…,ana_0, a_1, a_2, \dots, a_n are natural numbers such that a0<d0,a1<d1,a2<d2a_0 < d_0, a_1 < d_1, a_2 < d_2, etc. In fact, it is easy to check that when converting the number N=anqn+an−1qn−1+⋯+a2q2+a1q1+a0N = a_n q_n + a_{n-1} q_{n-1} + \dots + a_2 q_2 + a_1 q_1 + a_0 into our number system using the “continuous division” method (see p. 4 above), the following numbers are obtained:

an,an−1,an−2,…,a1,a0.a_n, a_{n-1}, a_{n-2}, \dots, a_1, a_0.

We will show that such a favorable situation is not a general law using the example of one very simple “number system”.

2° “Even” number system.

Taking all even numbers (and the number q0=1q_0 = 1) as the basis of the number system:

q0=1,q1=2,q2=4,q3=6,q_0 = 1, \quad q_1 = 2, \quad q_2 = 4, \quad q_3 = 6,

q4=8,q5=10,q6=12,q_4 = 8, \quad q_5 = 10, \quad q_6 = 12,

Since here

q1q0=q1=2\frac{q_1}{q_0} = q_1 = 2

And

qn+1qn=2(n+1)2n=n+1n=1+1n<2\frac{q_{n+1}}{q_n} = \frac{2(n+1)}{2n} = \frac{n+1}{n} = 1 + \frac{1}{n} < 2 for all n>1n > 1,

then this number system, like the double number system, knows only two “digits”: 0 and 1. The conditions are to designate the numbers written in this “even” number system in red. Then, very indo,

2=10,3=11,4=100,5=101,6=1000,7=1001,8=10000,9=100012 = 10, \quad 3 = 11, \quad 4 = 100, \quad 5 = 101, \quad 6 = 1000, \quad 7 = 1001, \quad 8 = 10000, \quad 9 = 10001, etc.

And in general, all numbers are depicted either as one with one or another number of zeros at the end (even numbers), or the vast majority of the sequence of zeros and ones do not express any numbers in the “even” number system, since in it one can only appear in the first place and - sometimes - in the last place.

And finally, one more example.

3° “Salesman System”. A standard set of weights for cup scales in a store generally includes weights: 10 e, 20 e (2), 50 e, 100 e, 200 e (2), 500 e, 1 ke, 2 ke (2) and 5 ke.

The seller uses this set of weights like a banknote cashier, available at the cash register. Namely, when answering a product, he first of all places on the scales the heaviest of the weights that do not overhang the goods, then he places the highest of the remaining weights, etc.

So, for example, when weighing a piece of meat weighing 3 ke 460 e, he uses the weights shown at figure.

9

Generalizing this well-known system of numbers (weights) “represented by numbers (weights) using a given system of weights”, well known to all sales employees and all business owners, we arrive at a number system with a basis
1, 2, 5, 10, 20, 50, 100, 200, 500, …
in which 3 kcal 460 g will be written like this
11020101000.

In this number system in the record
N≪anan−1a2a1a0N \ll a_n a_{n-1} \quad a_2 a_1 a_0
the last digit a0a_0 can only equal 0 or 1 (because q1=2q_1 = 2); the penultimate digit a1a_1 can take the values ​​0, 1 or 2 (since 2<q2/q1<32 < q_2/q_1 < 3); the third digit from the end a2a_2 can again take only the values ​​0 and 1 (since q3/q2=2q_3/q_2 = 2); the digit a3a_3 can also only take the values ​​0 and 1, but the digit a4a_4 can again take the values ​​0, 1 and 2 (because 2<q5/q4<32 < q_5/q_4 < 3).

And in general in this number system all the numbers
a1,a4,a7,a10,…,a3k+1a_1, a_4, a_7, a_{10}, \dots, a_{3k+1}
can take on the values ​​0, 1 and 2, and all other numbers can only have the values ​​0 and 1 (For a shop assistant, it is enough to have two two-gram weights and only one weight each for 1 kcal and 5 kcal.)