sábado, 30 de agosto de 2014
FRACTIONED CUMULATIVE SUCCESSIVE SUBTRACTIONS
Successive cumulative subtractions
using Modular Arithmetic applied to a series of values result in the
alternation of the signs minus and plus regarding each value.
The use of the modular additive
inverse is the best way to reach this alternation.
To this end the modular additive
inverse of the first value is added to the next value and the additive inverse
of the result obtained must be added successively to each next value till the
procedure reaches the last value.
Working with module 7, let us
establish a series of values and verify the procedure:
− 9 mod 7 + 3 ≣ 8; − 8 mod 7 + 6 ≣ 12; −12 mod 7 + 9 ≣ 11;
A practical and quicker way to reach
the same result consists of the use of common language:
2 + 9 = 11; 11 to 14 = 3; 3 + 6 = 9; 9 − 7 = 2
Observe that: 9 − 3 + 6 − 9 + 6 = 9
or 9 − 7 = 2, confirming the alternation of the signs minus and plus.
From now on it will be used just common
language.
To verify the divisibility by 7 of
the numbers formed by various periods it is applied the alternate additions and
subtractions of the numbers formed by their periods. With a simple adaptation
it is possible to verify divisibility by 7 using Modular Arithmetic.
In this case, instead of working
with three-digit numbers, it is necessary to split each period, separating the
ones from the hundreds and tens, observing that sometimes the first period does
not have the hundreds or both hundreds and tens.
Two steps are necessary to verify
the divisibility by 7 of a multi-period number:
Step 1 - Apply the cumulative
successive subtractions to the ones or to the pair hundreds/tens; if the first
digit belongs to the ones, start with the ones, otherwise start with the tens
or with the pair hundreds/tens.
Step 2 - Apply the procedure to the
remaining digit or pair of digits.
Working with the hundreds/tens will
result in the tens of a new number.
Working with the ones will result in
the ones of a new number.If the new number is a multiple of 7
then the tested number is also a multiple of 7; if not, the new number mod 7 is
equivalent to the remainder of the division of the tested number by 7.
Examples:
63;
7|63 and 7|N
It works because if 7|N the sum of the alternate numbers formed by the periods of N are equivalent mod 7.
Assinar:
Postagens (Atom)