Rough automatic draft, low quality: expect mistakes and awkward wording. It will be replaced by a better translation. Original →
27
- DIVISION WITH REMAINDER
You are about to take the subway. The fare is 5 kopecks; control at the entrance is automatic: in response to the machine you need to throw in a nickel, and if you don’t have one, then exchange your money for nickels at the change desk.
Let’s assume that you have a 20-kopeck coin. How many nickels can you get from the cash register? Everyone will say that 4.
Well, what if you have 19 kopecks without nickels? It is clear that you can get only 3 nickels and another 4 kopecks in change. Let’s write it like this: . This is a record of dividing the number 19 by 5 with a remainder.
Let us now imagine that there are coins of any denomination, that is, 1 kopeck, 2 kopecks, 3 kopecks, 4 kopecks, etc., and you need to exchange a -kopeck coin so as to get the maximum number of -kopecks. We ask how to do this?
It is clear that if you are taught to reprimand -kopeck coins:
, etc.,
then eventually there is a moment when, having received several -kopeck coins, you will no longer be able to get the next one; they will give you something
28
the number of -kopeck coins and some other remainder, say kopecks. In this case, will certainly be less than (it is not excluded, of course, that ).
The result of such an exchange can be written as follows:
In this formula, the numbers are natural, that is, positive integers, and and are non-negative integers.
On the limit of division with a remainder. Dividing the integer by the natural number means representing as
where are integers, .
In this case, the number is called the quotient, and is the remainder of the division of by .
In practice, division with a remainder is performed in the usual way, that is, “division by an angle.” For example,
here immediately there is a remainder and a quotient: .
Note that in this definition we do not require that be less than , and we do not even require that be positive. You can, for example, divide
a) 5 by 7: ,
b) -13 to 7: ,
b) -224 by 7: .
In the case where the remainder is zero, that is, , saying that is divisible by .
It is clear that if the numbers and are divisible by the number , then and , as well as (k - natural) are divisible by .
- COMPARISON OF INTEGERS BY MODULE
Often there are problems in which the main role is played not by the numbers themselves included in the problem statement, but by the remainders from the division of these numbers.
Example one. Psesid goes from city to city 78 hours. He leaves at 10 o’clock in the morning. What time will he leave at ?
Remember that there are 24 hours in a day, divide the number 78 by 24:
This means it will take three days and 6 hours to travel from to . Therefore, he will arrive at at 16:00.
Please note that exactly the same result would have been obtained if it took not 78, but 54, 30 or 126, 102 and generally hours to travel from to for any integer .
Example two. A mathematics teacher conducts tests in class using the following system, which, in his opinion, ensures the need for mutual assistance among students. He gives them a piece of paper in a row with the conditions of the problem (“variants”), alters them according to the number of students in the class, and informs them that all the options are different. Indeed, students sitting close to each other solve various problems.
In fact, the teacher prepares only 7 different options: option 8 coincides with option 1, 9 - with 2, …, 14 - with 7, 15 - with 1, etc.
29
running_head:
folio:
The students soon figured out the teacher’s system, and at the next test, friends Ivanov and Petrov, sitting at opposite ends of the class, agreed to solve the same problems. The strong student Ivanov showed Petrov the number of his option with gestures, and Petrov exchanged options with a student sitting close to him, accurately establishing which option number he should have in order to receive a thank you cheat sheet from Ivanov.
You are probably reporting that Petrov figured out the numbers of the options - Ivanov’s and his own - by 7 and was only interested in the remainders of these divisions: he had to fill in the option with a number that gives the same remainder as the remainder of Ivanov’s option. The option numbers themselves were not significant—only the remainders were important.
For example, if Ivanov received option 10 (or 3, or 17), and Petrov received 26 (or 33, or 40), then dividing 10 and 26 by 7:
Petrov exchanged options with a student who had an option
Example three. Let’s find out which digit the number ends up on. Consider successive powers of two:
It is easy to see that the last digits of these numbers are repeated after 4.
This means that the last digit of the number depends only on what remainder gives when divided by 4:
when is divisible by 4, that is, when , all numbers of the form turn out to be 6,
at — » » 2,
at — » » 4,
at — » » 8.
The remainder of 999 divided by 4 is 3, so is 8.
Since solving this example it turned out that we only need to know what remainder gives when divided by 4, the possibility of all numbers was divided into four classes consisting of numbers of the form
And in the second example (with test options), the possibility of all options was divided into 7 classes of the form
In general, if we are interested in remainders when divided by some fixed number , then the set of all integers (not only positive ones!) is divided into classes. Each class consists of numbers that give identical remainders when divided by . These are the classes:
-
numbers of the form
-
» »
-
» »
… … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … … …
30
Let us now introduce the following definition:
Defined. If the integers and it is possible that their difference is divisible by the natural number , then saying that and are comparable modulo ).
Let’s compare the numbers and modulo written like this:
It is clear that two numbers are comparable modulo if and only if they give identical remainders when divided by , that is, they belong to the same class.
For example,
Clear comparability of numbers turns out to be useful in solving many problems.
Problem 1. For what natural numbers is the number divisible by 3, that is, ?
Solution.
If , then ,
» , » ,
» , » .
So, if and only if is not divisible by 3.
The basic properties of comparison are reminiscent of the properties of general equalities. It is comparisons that can be obtained by adding, subtracting and multiplying:
if , and , then
Let us prove, for example, that comparisons can be multiplied. Since and , then and are divisible by . From equalities
it is clear that is also divisible by , that is
As an exercise, prove that the comparison can be added and subtracted.
Let . From the above properties of comparison it follows that for any natural number (that is, that both sides of the comparison can be raised to a power) and, in addition, that , where is any integer (that is, that both sides of the comparison can be multiplied by any integer).
Problem 2. What remainder when divided by 3 gives the number ?
Solution. This remainder will not change if each of the numbers is 2, 3, . . . , 1000 in this expression, replace it with the remainder when divided by 3. Thus, the number of interest modulo 3 is equal to , i.e., the required remainder is 1.
*) The word “module” (from the Latin “modulus” - measure) is used in various areas of mathematics and its applications; it is assigned to a number of particular importance; for example, counting or measuring is carried out in relation to it.
31
Task 3. Prove that every natural number is comparable modulo 9 to its sum of digits.
Solution. Let
where are the digits of the number . We have
Let us now write down the following estimated comparisons:
Multiplying these comparisons by respectively and adding, we get
From here, by the way, we immediately get the well-known sign of divisibility of numbers by 9 (and 3).
- ARITHMETICS OF REMAINS ACCORDING TO THIS MODULE
Let a natural number (modulo) be given. Considering all possible integers, we will be interested only in their remainders when dividing them by . Thus, we will not distinguish numbers comparable modulo from each other. Under this condition, we have a remainder of of “different” objects - remainders from division by :
and for them we can define new rules for “addition” and “multiplication”: namely, if and are two remainders, then “sum” we will call the remainder that gives the number when divided by , and “product” is the remainder when dividing to . For example, for the remainder when divided by 10 is the last digit of its decimal notation. Therefore, in arithmetics of remainders modulo 10 will be true, for example, also the equalities
In the .ariphmetic of modulo 2 remainders there are only two remainders: 0 and 1, so this .ariphmetic is quite simple:
For we get
, etc.
Thus, whichever modulo corresponds to its own ariphmetic. For the sake of brevity, we will call it -ariphmetic*).
32
As an example, we give multiplication and addition tables in 7-arithmetic.
Multiplication table
| × | 1 | 2 | 3 | 4 | 5 | 6 |
| :— | :— | :— | :— | :— | :— | :— |
| 1 | 1 | 2 | 3 | 4 | 5 | 6 |
| 2 | 2 | 4 | 6 | 1 | 3 | 5 |
| 3 | 3 | 6 | 2 | 5 | 1 | 4 |
| 4 | 4 | 1 | 5 | 2 | 6 | 3 |
| 5 | 5 | 3 | 1 | 6 | 4 | 2 |
| 6 | 6 | 5 | 4 | 3 | 2 | 1 |
Addition table
| + | 0 | 1 | 2 | 3 | 4 | 5 | 6 |
| :— | :— | :— | :— | :— | :— | :— | :— |
| 0 | 0 | 1 | 2 | 3 | 4 | 5 | 6 |
| 1 | 1 | 2 | 3 | 4 | 5 | 6 | 0 |
| 2 | 2 | 3 | 4 | 5 | 6 | 0 | 1 |
| 3 | 3 | 4 | 5 | 6 | 0 | 1 | 2 |
| 4 | 4 | 5 | 6 | 0 | 1 | 2 | 3 |
| 5 | 5 | 6 | 0 | 1 | 2 | 3 | 4 |
| 6 | 6 | 0 | 1 | 2 | 3 | 4 | 5 |
These tables are devices like this: at the intersection of rows and columns, they build the product (correspondence - sum) of the remainders at the beginning of these rows and columns.
From the properties of comparison and the usual rules of action on numbers it is clear that in -arithmetic the given rules of ordinary arithmetic are satisfied, that is, for any remainders there will be
Thus, in our arithmetics, for example, the following formulas will be correct:
Let’s consider several problems using -arithmetic.
Task 4. Find the remainder when is divided by 7.
Solution. We need to figure out what is equal to in 7-arithmetic. It is easy to see that .
Task 5. Find the last digit of the number .
Solution. We have to figure out what this number is equal to in 10-arithmetic. To do this, consider the successive powers of the number 7 in 10-arithmetic:
It’s clear that
So, we need to find out the remainder when dividing the number by 4. To do this, consider in 4-arithmetic. Since , we now consider the sequence of remainders in 4-arithmetic:
33
But 1000 is an even number; means , that is . Therefore, in 10-arithmetic .
Answer: the number ends in 7.
Problem 6. Prove that if is divisible by 3, then both and are divisible by 3.
Solution. Passing to remainders from division by 3, we obtain the 3-arithmetic equality . There are three remainders in 3-arithmetic: 0, 1, 2.
We have: . It is easy to see that for , that is, from the equality it follows and . This means that and are simultaneously divisible by 3.
TASKS *)
-
Division with remainder
1.0. Divide with the remainder -297 by 31, -1005 by 98. -
Prove that the number of divisors of any natural number does not exceed .
-
Find remainders from division of numbers ( - natural): a) by and by ; b) on and on ; c) to (at ).
-
Find all integers for which is also an integer.
-
Prove that the product of any three consecutive integers is divisible by 6.
-
Prove that if is divisible by 6, then is also divisible by 6 ( are integers).
7*. 15 prime numbers form an arithmetic progression. Prove that its difference is greater than 30,000. -
Comparing integers modulo
8.0. Find all natural numbers for which the number is divisible by 3.
9.0. Solve the comparison (mod 7). -
Prove the following test for divisibility by 11:
then and only when
.
11. Using the fact that (mod 7), as well as (mod 37), obtain divisibility criteria for 7 and 37.
12. Prove that if the numbers and 5 have the same sum of digits, then is divisible by 9.
13. Prove that the equation has no integer solution.
14. Prove that for no integer the number is divisible by 11.
15. Prove that numbers of the form are not perfect squares for any natural number .
3. Arithmetic of remainders for a given modulus
16.0. Construct addition and multiplication tables in 4-, 6-, 8-, 11-, and 13-arithmetic.
17. Construct tables of squares and cubes in 9-arithmetic.
18. Using the table of cubes obtained in Problem 17, prove that numbers of the form and cannot be represented as the sum of the cubes of three numbers.
19. Prove that in -arithmetic, where is a prime number, from the equality with it follows that .
20. Prove that in -arithmetic for any remainder there is a unique remainder - such that . Deduce from this that the equation has a solution in any -arithmetic for any and .
21. Prove that for composite in -arithmetic there are remainders and as well as .
22. Using 31 arithmetic, prove that is divisible by 31.
*) Easy tasks are marked with a zero, and the most difficult ones are marked with an asterisk.