Math 300: Homework 6
Mohammed Khan
Fall 2026
Problem 1
Let X be the set of all finite subsets of N. Define
S1 ∼1 S2 ⇐⇒ |S1 | = |S2 |
and
S1 ∼2 S2 ⇐⇒ S1 ∩ S2 ̸= ∅.
Determine which relations are equivalence relations.
Proof. First, consider ∼1 .
Reflexivity: For every S ∈ X ,
|S| = |S|.
Thus, S ∼1 S.
Symmetry: Suppose S1 ∼1 S2 . Then
|S1 | = |S2 |.
Therefore,
|S2 | = |S1 |,
so S2 ∼1 S1 .
Transitivity: Suppose S1 ∼1 S2 and S2 ∼1 S3 .
Then
|S1 | = |S2 | and |S2 | = |S3 |.
Thus,
|S1 | = |S3 |,
so S1 ∼1 S3 .
Therefore, ∼1 is an equivalence relation.
Now consider ∼2 .
The relation is not reflexive because
∅ ∩ ∅ = ∅.
Thus,
∅ ̸∼2 ∅.
Also, ∼2 is not transitive.
1
Let
A = {1},
B = {1, 2},
C = {2}.
Then
A ∩ B = {1} ̸= ∅
and
B ∩ C = {2} ̸= ∅.
Thus,
A ∼2 B
and B ∼2 C.
However,
A ∩ C = ∅,
so A ̸∼2 C.
Therefore, ∼2 is not an equivalence relation.
Hence, only ∼1 is an equivalence relation.
Problem 2
Let S be the set of quadratic polynomials with real roots. Define
f ∼ g ⇐⇒ {x ∈ R : f (x) = 0} = {x ∈ R : g(x) = 0}.
Prove that ∼ is an equivalence relation and list three elements of the equivalence class of x2 −
3x + 2.
Proof. For each f ∈ S, let
Z(f ) = {x ∈ R : f (x) = 0}.
Then
f ∼ g ⇐⇒ Z(f ) = Z(g).
Reflexivity: For every f ∈ S,
Z(f ) = Z(f ).
Thus, f ∼ f .
Symmetry: Suppose f ∼ g. Then
Z(f ) = Z(g).
Therefore,
Z(g) = Z(f ),
so g ∼ f .
Transitivity: Suppose f ∼ g and g ∼ h. Then
Z(f ) = Z(g) and Z(g) = Z(h).
Thus,
Z(f ) = Z(h),
so f ∼ h.
Therefore, ∼ is an equivalence relation.
2
Now let
f (x) = x2 − 3x + 2.
Factoring,
f (x) = (x − 1)(x − 2).
Thus,
Z(f ) = {1, 2}.
Any nonzero multiple of f has the same roots.
Three elements of its equivalence class are
f1 (x) = x2 − 3x + 2,
f2 (x) = 2x2 − 6x + 4,
f3 (x) = −x2 + 3x − 2.
Therefore,
[f ] = {c(x − 1)(x − 2) : c ∈ R, c ̸= 0} .
Problem 3
Define a relation on R by
x ∼ y ⇐⇒ x − y ∈ Q.
26
Prove that ∼ is an equivalence relation and find the equivalence classes of 0, 11
, and
Proof. Reflexivity: For every x ∈ R,
x − x = 0.
Since 0 ∈ Q, we have x ∼ x.
Symmetry: Suppose x ∼ y. Then
x − y ∈ Q.
Since the negative of a rational number is rational,
y − x = −(x − y) ∈ Q.
Thus, y ∼ x.
Transitivity: Suppose x ∼ y and y ∼ z. Then
x − y ∈ Q and y − z ∈ Q.
Since the sum of two rational numbers is rational,
x − z = (x − y) + (y − z) ∈ Q.
Thus, x ∼ z.
Therefore, ∼ is an equivalence relation.
For any a ∈ R,
[a] = {a + q : q ∈ Q}.
3
√
2.
Class of 0:
[0] = Q.
Three elements are
0, 1, −1 .
Class of 26
11 :
Since 26
is
rational,
11
[︃
]︃
26
= Q.
11
Three elements are
26 37 15
,
,
.
11 11 11
Thus,
[︃
[0] =
Class of
√
2:
√
√
[ 2] = { 2 + q : q ∈ Q}.
Three elements are
Since
√
]︃
26
.
11
√
2,
√
2 + 1,
√
2−1 .
2 is irrational, this class is different from Q.
Problem 4
Define a relation on N>1 by
x∼y
if and only if the prime factorizations of x and y contain the same number of factors equal to 2.
Prove that ∼ is an equivalence relation and find the equivalence classes of 2 and 5.
Proof. For every integer n > 1, let v2 (n) be the number of factors of 2 in its prime factorization.
Then
x ∼ y ⇐⇒ v2 (x) = v2 (y).
Reflexivity: For every x > 1,
v2 (x) = v2 (x).
Thus, x ∼ x.
Symmetry: Suppose x ∼ y. Then
v2 (x) = v2 (y).
Therefore,
v2 (y) = v2 (x),
so y ∼ x.
Transitivity: Suppose x ∼ y and y ∼ z.
Then
v2 (x) = v2 (y)
4
and
v2 (y) = v2 (z).
Thus,
v2 (x) = v2 (z),
so x ∼ z.
Therefore, ∼ is an equivalence relation.
Equivalence class of 2:
Since
2 = 21 ,
the prime factorization of 2 contains one factor of 2.
Thus,
[2] = {2m : m ∈ N, m is odd}.
Three elements are
2, 6, 10 .
Equivalence class of 5:
Since 5 has no factors of 2, its equivalence class contains all odd integers greater than 1.
Therefore,
[5] = {m ∈ N>1 : m is odd}.
Three elements are
3, 5, 7 .
Problem 5
Define a relation on R by
x ∼ y ⇐⇒ |x| = |y|.
Prove that ∼ is an equivalence relation and find the equivalence classes of 0, 5, and
Proof. Reflexivity: For every x ∈ R,
|x| = |x|.
Thus, x ∼ x.
Symmetry: Suppose x ∼ y. Then
|x| = |y|.
Therefore,
|y| = |x|,
so y ∼ x.
Transitivity: Suppose x ∼ y and y ∼ z.
Then
|x| = |y| and |y| = |z|.
Thus,
|x| = |z|,
so x ∼ z.
5
√
2.
Therefore, ∼ is an equivalence relation.
For any a ∈ R,
[a] = {x ∈ R : |x| = |a|}.
Since |x| = |a| means x = a or x = −a,
[a] = {a, −a}.
Thus,
[0] = {0} ,
[5] = {−5, 5} ,
and
√
√ √
[ 2] = {− 2, 2} .
Problem 6
Find the remainders of the following expressions.
(a) 238 − 494 · 44 modulo 9
Proof. First, reduce each number modulo 9.
Since
238 = 9(26) + 4,
we have
238 ≡ 4
(mod 9).
Also,
494 = 9(54) + 8,
so
494 ≡ 8
(mod 9).
And
44 = 9(4) + 8,
so
44 ≡ 8
(mod 9).
Therefore,
238 − 494 · 44 ≡ 4 − 8 · 8
≡ 4 − 64
≡ −60
≡3
Thus, the remainder is
3.
6
(mod 9)
(mod 9)
(mod 9)
(mod 9).
(b) 182 · 144 modulo 13
Proof. Since
182 = 13(14),
we have
182 ≡ 0
(mod 13).
Also,
144 = 13(11) + 1,
so
144 ≡ 1
(mod 13).
Therefore,
182 · 144 ≡ 0 · 1
≡0
(mod 13)
(mod 13).
Thus, the remainder is
0.
(c) 1127 modulo 3
Proof. Since
11 ≡ 2 ≡ −1
(mod 3),
1127 ≡ (−1)27
(mod 3).
we have
Since 27 is odd,
(−1)27 = −1.
Therefore,
1127 ≡ −1 ≡ 2
(mod 3).
Thus, the remainder is
2.
Problem 7
Prove by induction on n that if
x≡y
(mod m),
xn ≡ y n
(mod m)
then
for every n ∈ N.
7
Proof. Let x, y ∈ Z and m ∈ N>0 , and suppose
x≡y
(mod m).
Thus,
m | (x − y).
We prove the statement by induction on n.
Base case (n = 1):
By assumption,
x ≡ y (mod m).
Therefore,
x1 ≡ y 1
(mod m).
xk ≡ y k
(mod m).
Inductive hypothesis:
Suppose that for some k ≥ 1,
Thus,
m | (xk − y k ).
Inductive step:
We must show that
xk+1 ≡ y k+1
(mod m).
Consider
xk+1 − y k+1 = xk+1 − xk y + xk y − y k+1
= xk (x − y) + y(xk − y k ).
By the original assumption,
m | (x − y).
Therefore,
m | xk (x − y).
By the inductive hypothesis,
m | (xk − y k ).
Therefore,
m | y(xk − y k ).
Since m divides both terms, it also divides their sum.
Thus,
m | (xk+1 − y k+1 ).
Therefore,
xk+1 ≡ y k+1
(mod m).
Hence, by induction,
xn ≡ y n
(mod m)
for every n ∈ N.
8
Problem 8
Use congruences modulo 7 and exhaustion of cases to prove that for every integer k,
5(k 6 − k 3 ) ≡ 0 or 3
(mod 7).
Proof. Let k ∈ Z.
Every integer is congruent to one of
0, 1, 2, 3, 4, 5, 6
modulo 7.
By Problem 7, we can use these values to find the remainders of powers of k.
We check each case.
Case 1: Suppose
k ≡ 0 (mod 7).
Then
5(k 6 − k 3 ) ≡ 5(06 − 03 ) ≡ 0 (mod 7).
Case 2: Suppose
k≡1
(mod 7).
Then
5(k 6 − k 3 ) ≡ 5(1 − 1) ≡ 0
(mod 7).
Case 3: Suppose
k≡2
(mod 7).
Since
23 = 8 ≡ 1
(mod 7),
we have
26 ≡ 1
(mod 7).
Therefore,
5(k 6 − k 3 ) ≡ 5(1 − 1) ≡ 0
(mod 7).
Case 4: Suppose
k≡3
(mod 7).
Since
33 = 27 ≡ 6
(mod 7),
we have
36 ≡ 62 ≡ 36 ≡ 1
(mod 7).
Thus,
5(k 6 − k 3 ) ≡ 5(1 − 6)
≡ −25
(mod 7)
(mod 7)
≡3
(mod 7).
k≡4
(mod 7).
Case 5: Suppose
9
Since
43 = 64 ≡ 1
(mod 7),
we have
46 ≡ 1
(mod 7).
Therefore,
5(k 6 − k 3 ) ≡ 5(1 − 1) ≡ 0
(mod 7).
Case 6: Suppose
k≡5
(mod 7).
Since
53 = 125 ≡ 6
(mod 7),
56 ≡ 62 ≡ 1
(mod 7).
we have
Therefore,
5(k 6 − k 3 ) ≡ 5(1 − 6)
≡ −25
(mod 7)
(mod 7)
≡3
(mod 7).
k≡6
(mod 7).
6 ≡ −1
(mod 7),
Case 7: Suppose
Since
we have
63 ≡ (−1)3 ≡ −1 ≡ 6
(mod 7)
and
66 ≡ (−1)6 ≡ 1
(mod 7).
Thus,
5(k 6 − k 3 ) ≡ 5(1 − 6)
≡ −25
≡3
(mod 7)
(mod 7)
(mod 7).
The results are
k mod 7
0 1 2 3 4 5 6
5(k 6 − k 3 ) mod 7 0 0 0 3 0 3 3
Thus, in every case,
5(k 6 − k 3 ) ≡ 0 or 3
Therefore, the statement holds for every integer k.
10
(mod 7).