Print preview
Worksheet Preview Activity
In a given month, some days are more similar than others. For example, the 3rd of the month is more like the 24th than it is like the 15th. What does this possibly mean? We will explore two ways in which this is true.
1.
We will say that two numbers between 1 and 31 are related, written if their difference is a multiple of 7. So for example, since but since which is not a multiple of 7.
(a)
Which of the following are true? That is, which of the following pairs of numbers are related as we have defined above?
(b)
Which of the following statements are true about the relation in this case?
(c)
2.
When you divide a multiple of 7 by 7, you get a whole number. If you divide another number by 7, you can either write the result as a decimal or as a quotient and a remainder. For example, is with a remainder of 5, since we can write The remainder is also called the modulus. When programming in python (and many other languages), the modulus operator is written as
%
. For example, 19 % 7
is 5
. Try this out for a few numbers.
(a)
(b)
Since the modulus is a function, each number has exactly one modulus when divided by 7. This means that the moduli partition the numbers from 1 to 31: every number belongs to exactly one of the sets of numbers with a particular modulus. We have already found the set for modulus 5. Find the other sets.
-
a % 7 = 0
: ; -
a % 7 = 1
: ; -
a % 7 = 2
: ; -
a % 7 = 3
: ; -
a % 7 = 4
: ; -
a % 7 = 6
: .
(c)
We can use the moduli to define a relation on the numbers from 1 to 31. We will say that if
a % 7 = b % 7
. In other words, two numbers are related if they belong to the same set of the partition we found above.
Which of the following are true? That is, which of the following pairs of numbers are related by this modulus relation?