§ 88. General Justification of Divisibility Rules of the Previous Type
The divisibility rules for 6, 12, 15, and many other numbers have a common theoretical basis, which we shall set forth here.
Divide a₁ by p and call the quotient and the remainder from this division q and r, respectively. Then a₁ = pq + r.
Let us verify with respect to the remainder r that it: 1) is not equal to 0 and 2) has no common divisors with p other than one. Indeed, if r = 0, then a₁ = pq, in which case a₁ would be divisible by p, and consequently the numbers a₁ and p would have a common divisor other than one, which contradicts the condition of the theorem. Let us further suppose that p and r have some common divisor t > 1. Then a₁ would be divisible by t, and consequently a₁ and p would have a common divisor t > 1, which contradicts the condition.
If the remainder r is not equal to one, then divide p by r and call the quotient and the remainder from this division q₁ and r₁. Then p = rq₁ + r₁. Since p and r, as proved, have no common divisors other than one, from the last equality we ascertain, similarly to the previous case, that: 1) r₁ is not equal to zero and 2) r₁ and p have no common divisors other than one. If r₁ is not equal to one, then divide r by r₁, from which we obtain a remainder r₂, not equal to zero and having no common divisors with r₁ other than one. If r₂ is not equal to one, then divide r₁ by r₂, and so on; then we obtain a series of equalities:
a₁ = pq + r,
p = rq₁ + r₁,
r = r₁q₂ + r₂,
r₁ = r₂q₃ + r₃,
...
from which we ascertain that the remainders r, r₁, r₂, and so on, are not equal to zero.
Since in any division the remainder must be less than the divisor, then r < p, r₁ < r, r₂ < r₁, and so on. Therefore, having performed a sufficient number of divisions, we shall finally arrive at a remainder that is equal to one.
Let rₙ = 1. Then: rₙ₋₂ = rₙ₋₁qₙ + 1.
Multiply each of the obtained equalities term by term by a₂:
a₁a₂ = pqa₂ + ra₂,
pa₂ = rq₁a₂ + r₁a₂,
ra₂ = r₁q₂a₂ + r₂a₂,
...
Focusing on the first of these equalities, we reason as follows: since the product a₁a₂, by condition, is divisible by p, then the sum pqa₂ + ra₂ is divisible by p; the first term of this sum is divisible by p; consequently, the second term, i.e. the product ra₂, is divisible by p. Then passing to the second equality, we find that the sum pa₂ and one of the terms rq₁a₂ are divisible by p, from which we conclude that the second term r₁a₂ is divisible by p. Passing then to the third equality, from the third to the fourth, from the fourth to the fifth, and so on, we shall finally arrive at the last equality, from which we conclude that a₂ is divisible by p.