Module 9 Modular Systems
Module 9 Modular Systems
INTRODUCTION
If we want to determine a time in the future or in the
past, it is necessary to consider
whether we have passed 12 o’clock.
To determine the time 8 hours after
3 o’clock, we add 3 and 8. Because
we did not pass 12 o’clock, the time
is 11 o’clock (Figure 8.1A).
● Situations such as these that repeat in cycles
However, to determine the time 8
are represented mathematically by using
hours after 9 o’clock, we must take
modular arithmetic or arithmetic modulo n.
into consideration that once we have
passed 12 o’clock, we begin again
with 1. Therefore, 8 hours after 9
o’clock is 5 o’clock (Figure 8.1B).
CRYPTOLOGY
● Related to codes on books and grocery items
are secret codes. These codes are used to send
messages between people, companies, or
nations.
CREDIT CARD NUMBERS ● It is hoped that by devising a code that is
● Companies that issue credit cards also use difficult to break, the sender can prevent the
modular arithmetic to determine whether a communication from being read if it is
credit card number is valid. intercepted by an unauthorized person.
● This is especially important in e-commerce, ● Cryptology is the study of making and
where credit card information is frequently sent breaking secret codes.
● Before we discuss how messages are coded, we
need to define a few terms. Plaintext is a
message before it is coded. The line:
SHE WALKS IN BEAUTY LIKE THE NIGHT
● from Lord Byron’s poem “She Walks in Beauty”
is in plaintext. Ciphertext is the message after
it has been written in code. The line
ODA SWHGO EJ XAWQPU HEGA PDA JECDP
is the same line of the poem in ciphertext.
● The method of changing from plaintext to ● The practicality of a cyclical alphabetic coding
ciphertext is called encryption. scheme is limited because it is relatively easy
● The line from the poem was encrypted by for a cryptologist to determine the coding
substituting each letter in plaintext with the 22 scheme.
letters after that letter in the alphabet. ● A coding scheme that is a little more difficult to
● (Continue from the beginning when the end of break is based on the congruence c ≡(ap + m)
the alphabet is reached.) This is called a mod 26, where a and 26 do not have a
cyclical coding scheme because each letter of common factor.
the alphabet is shifted the same number of
positions. Example 5: Encode a message
● The original alphabet and the substitute
alphabet are shown below.