Mathematical Systems
Mathematical Systems
A. MODULO ARITHMETIC
In mathematics, modular arithmetic (sometimes called clock arithmetic) is a system of arithmetic for integers,
where numbers wrap around after they reach a certain value - the modulus.
There are 24 Hours in a Day, however, time is divided to two twelve hour periods.
Example:
Modulo Arithmetic
The Swiss mathematician Leonhard Euler pioneered the modern approach to congruence in 1750, when he
explicitly introduced the idea of congruence modulo of a number N.
Modular arithmetic was further advanced by Carl Friedrich Gauss in his book published in 1801.
Modulo n
Two integers a and b are said to be congruent modulo n, where n is a natural number,
a−b
If
n
Is an integer. In this case, we write a ≡ b mod n. The number n is called the modulus. The statement a ≡
b mod n is called a congruence.
Addition Modulo n
Evaluate: (23+38)mod 12
Solution
Add 23 and 38 to produce 61. Then divide the modulus, 12. The answer is the remainder.
61
= 5 remainder 1 The answer is 1.
12
Another coding scheme that is closely related to the ISBN and UPC ( Universal Product Code). This
number is placed on many items and is particularly useful in grocery stores.
Companies that issue credit card also use modular arithmetic to determine whether a credit card
number is valid. This is especially important in e-commerce, where credit card information is frequently
sent over the internet. The primary coding method is based on the LUHN ALGORITHM, which uses mod
10 arithmetic.
Credit card numbers are normally 13 to 16 digits long. The first one to four digits are used to identify the
card issuer. The table below shows the identification prefixes used by popular card issuers.