Abstract - Algebra - Home I
Abstract - Algebra - Home I
Problem Set 01
Luis Arteaga, Jhon Duta, Santiago López, Edwin Hurtado
March 24, 2024
Problem 1. For each of the following pairs of integers a and b, determine their
greatest common divisor, their least common multiple, and write their greatest
common divisor in the form ax + by for some integers x and y.
a) a = 792, b = 275
b) a = 507885 , b = 60808
a·b
[a.b] = .
(a, b)
792 · 275
[792, 275] = = 29800,
(792, 275)
1
then
11 = 242 − 7(33)
= 242 − 7[275 − 242]
= 8(242) − 7(275)
= 8[792 − 2(275)] − 2(275)
= (8)792 + (−23)(275).
507885 · 60808
[507885, 60808] = = 44693880,
(507885, 60808)
then,
Problem 2. Prove that if n is composite then there are integers a and b such that
n divides ab but n does not divide either a or b.
2
we have that
Let
a = a1 ∧ b = a2 , · · · , ak .
Then
1·n=n=a·b
n∤a
b = kn
=⇒ ab = akn
=⇒ n = akn
=⇒ 1 = ak
n ∤ b.
Problem 3. If p is a prime, prove that there do not exist nonzero integers a and b
√
such that a2 = pb2 . (Why this proves p is not a rational number.)
3
lose of generality that a and b do not has factors in common, i.e.,
(a, b) = 1 (1)
then
a = k0 p, k0 ∈ Z,
and
a2 = k02 p2 .
p|a ∧ p | b ⇐⇒ a = k0 p ∧ b = k1 p, k0 , k1 ∈ Z.
Problem 4. Write down explicitly all the elements in the residue classes of Z/18Z.
¯
Solution. We have that for Z/18Z = {0̄, 1̄, 2̄, · · · , 17}.
4
Then
0̄ = {18k0 /k0 ∈ Z}
1̄ = {18k0 + 1/k0 ∈ Z}
2̄ = {18k0 + 2/k0 ∈ Z}
3̄ = {18k0 + 3/k0 ∈ Z}
4̄ = {18k0 + 4/k0 ∈ Z}
5̄ = {18k0 + 5/k0 ∈ Z}
6̄ = {18k0 + 6/k0 ∈ Z}
7̄ = {18k0 + 7/k0 ∈ Z}
8̄ = {18k0 + 8/k0 ∈ Z}
9̄ = {18k0 + 9/k0 ∈ Z}
¯ =
10 {18k0 + 10/k0 ∈ Z}
¯ =
11 {18k0 + 11/k0 ∈ Z}
¯ =
12 {18k0 + 12/k0 ∈ Z}
¯ =
13 {18k0 + 13/k0 ∈ Z}
¯ =
14 {18k0 + 14/k0 ∈ Z}
¯ =
15 {18k0 + 15/k0 ∈ Z}
¯ =
16 {18k0 + 16/k0 ∈ Z}
¯ =
17 {18k0 + 17/k0 ∈ Z}.
i) ac ≡ bd mod n.
ii) a + c ≡ b + d mod n.
5
Clearly,
1 ≡ 10 mod 9.
10i ≡ 1i = 1 mod 9.
ai 10i ≡ ai mod 9.
Then,
an + an−1 + · · · + a1 + a0 ≡ 0 mod 9.
Solution. Let
372 = 1369 = 29(47) + 6 ≡ 6 mod 29.
Then
374 ≡ 62 = 36 ≡ 7 mod 29
378 ≡ 72 = 49 ≡ 20 mod 29
3716 ≡ 202 = 400 = 29(13) + 23 ≡ 29mod 29
3732 ≡ 232 = 29(18) + 7 ≡ 7 mod 29
3764 ≡ 72 ≡ 20 mod 29
3764+32+4 = 3764 3732 374
≡ 20 · 7 · 7
≡ (29) · 33 + 23
≡ 23 mod 29.
6
Problem 7. Prove that the squares of the elements in Z/4Z are just 0 and 1.
Proof.
a2 ≡ (0 ⊻ 1) mod 4.
Clearly
a ≡ r mod 4, 0 ≤ r < 4.
Then, by (3)
a2 ≡ r2 mod 4,
then
02 = 0 ≡ 0 mod 4,
12 = 1 ≡ 1 mod 4,
22 = 4 ≡ 0 mod 4,
32 = 9 ≡ 1 mod 4.
Then, a2 ≡ (0 ⊻ 1)mod 4.
Proof. Let a, b ∈ Z.
Since a2 ≡ (0 ⊻ 1) mod 4 and b2 ≡ (0 ⊻ 1) mod 4 we have four cases:
a2 + b2 ≡ 0 + 0 = 0 mod 4,
2 2
a +b ≡ 1 + 0 = 1 mod 4,
2 2
a +b ≡ 0 + 1 = 1 mod 4,
a2 + b2 ≡ 1 + 1 = 2 mod 4.
7
Problem 9. Prove that the equation x2 + y 2 = 3z 2 has no solutions for x, y, z ∈
Z\{0}.
Proof. let’s show by contradiction, let’s suppose there exists a nonempty solution
set for the equation
x2 + y 2 = 3z 2 , (4)
say,
S = {(x, y, z)| x2 + y 2 = 3z 2 }.
Let
A = {x| (x, y, z) ∈ S and x ∈ Z+ }.
By the well ordering principle. A has a minimal element, say x0 . Then, let
(x0 , y0 , z0 ) be a solution.
Now using mod 4 and the results of the previous exercises, we have that
By the last, 2 divides z0 . Similarly, since x20 + y02 ≡ 0 mod 4, that follows
Let ā, b̄ ∈ (Z/nZ)× , then by (6), we have that ā, b̄ has an inverse x̄ and z̄ respectively.
8
Then
Thus, ā · b̄ ∈ (Z/nZ)× .
ac ≡ 1 mod n
=⇒ acb ≡ b mod n
=⇒ (ab)c ≡ b mod n.
But
abc ≡ 0 mod n,
and
b ̸≡ 0 mod n.
Problem 12. Let n ∈ Z, n > 1, and let a ∈ Z with 1 ≤ a ≤ n. Prove that if a and
n are relatively prime then there is an integer c such that ac ≡ 1(modn). (Use the
fact that the g.c.d. of two integers is a Z-linear combination of the integers.)
9
Then
1 = ca + dn, c, d ∈ Z
=⇒ ca − 1 = dn, c, d ∈ Z
=⇒ ca ≡ 1 mod n.
Problem 13. Conclude from the previous two exercises that (Z/nZ)× is the set of
elements ā of Z/nZ with (a, n) = 1 and hence prove Proposition 4 . Verify this
directly in the case n = 12.
where
W = {ā ∈ Z/nZ | (a, n) = 1}.
¯ = 0̄.
n ∈ Z, n > 1, 1 ≤ a ≤ n : (a, n) > 1 ⇒ ∃b ∈ Z, 1 ≤ b < n : ab (9)
¯ ̸= 0̄ ⇒ (a, n) = 1.
n ∈ Z, n > 1, 1 ≤ a ≤ n : ∀b ∈ Z, 1 ≤ b < n : ab (10)
¯ ̸= 0.
∀b ∈ Z, 1 ≤ b < n : ab (11)
¯ = 0̄.
∃b ∈ Z, 1 ≤ b < n : ab
10
Then
ā · c̄ · b̄ = c̄ · 0 = 0
⇒1 · b̄ = 0
⇒b̄ = 0.
(Z/nZ)× ⊆ W. (12)
ac ≡ 1 mod n,
i.e,
ā · c̄ = 1,
W ⊆ (Z/nZ)× . (14)
Problem 14. (a) Prove that if n is squarefree (i.e., n > 1 and n is not divisible by
√
the square of any prime), then n is irrational.
√
(b) Prove that 3 2 is irrational.
Proof. a)
√
Let’s suppose that n is rational, i.e.,
√ a
n= , a ∈ Z, b ∈ Z\{0}.
b
a
Without lose of generality, let’s suppose that b is in lower terms, i.e.,
(a, b) = 1. (15)
11
2
Also, n = ab2 =⇒ a2 = nb2 . Since n is squarefree we can rewrite it as a product
of primes, where n is not divisible by the square of any prime. Let p be a prime
divisor of n, so that
n = pq, q ∈ Z, p a prime
and
(p, q) = 1. (16)
Since
a2 = nb2 = p(qb2 ), (17)
p|b2 .
Applying again Euclide’s Lemma (1), we get that p|b. But p|b and p|a implies that
p is a common divisor of a and b. That follows a contradiction with (15). Then,
√
n is not rational.
√
3
Let’s suppose that 2 is rational, then
√
3 a
2= ; a ∈ Z, b ∈ Z\{0},
b
a
where b is in a lower terms, i.e., (a, b) = 1. Then
a3
2= ⇐⇒ 2b3 = a3 .
b3
12
Then, for some k ∈ Z
a = 2k
3
=⇒ a = (2k)3 .
Then
2b3 = 8k 3
=⇒ b3 = 2(2k 3 ).
Problem 15. Let a and b be nonzero integers and let d = (a, b). Prove that a/d
and b/d are relatively prime.
a b
( , ) = 1.
d d
Problem 16. Let m, r, r′ ∈ Z. Prove that if (r, m) = 1 = (r′ , m), then (rr′ , m) = 1.
1 = x0 + y0 m; x0 , y0 ∈ Z.
13
1 = x1 r′ + y1 m; x1 , y1 ∈ Z.
Then
1 = (x0 r + y0 m)(x1 r′ + y1 m)
= x0 x1 rr′ + x0 y1 rm + y0 x1 r′ m + y0 y1 m2
= (x0 x1 )rr′ + (x0 y1 r + y0 x1 r′ + y0 y1 m)m.
Then
(rr′ , m) | [(x0 x1 )rr′ + (x0 y1 r + y0 x1 r′ + y0 y1 m)m] = 1,
and consequently
(rr′ , m) = 1.
d = sa + tb − kab + kab
= (s − kb)a + (t + ka)b.
{(sk , tk ) | k ∈ Z},
14
Problem 18. If a and b are relatively prime and if each divides an integer n, then
their product ab also divides n.
n = x0 a and n = y0 b; x0 , y0 ∈ Z.
Then
x0 a = y0 b
=⇒ b|x0 b.
Then
x0 = m0 b, m0 ∈ Z.
Finally
n = x0 a = m0 ba
=⇒ ba|n.
Problem 19. Let a, b, c ∈ Z with a > 0. Prove that a(b, c) = (ab, ac). (One must
assume that a > 0 lest a(b, c) be negative.)
d = x0 b + x1 c =⇒ ad = x0 ab + x1 ac, f or x0 , x1 ∈ Z. (19)
D = y0 ab + y1 ac, f or y0 , y1 ∈ Z. (20)
15
Then
As ad divides any linear combination of ac and ab, then by (20), ad divides D, i.e.,
ad|D.
From D = (ab, ac) we get that
D|ab ∧ D|ac.
a2 + b2 = c2 .
q 2 − p2 , 2qp, q 2 + p2
is a Pythagorean triple by showing that z 2 = |z|2 . (One can prove that every
primitive Pythagorean triple (a, b, c) is of this type.)
16
Next, we square z:
z 2 = (q + ip)2 = q 2 + 2qip − p2 .
|z 2 |2 = (q 2 − p2 )2 + (2qp)2 .
(q 2 − p2 )2 + (2qp)2 = (q 2 + p2 )2 ,
(b) Show that the Pythagorean triple (9, 12, 15) (which is not primitive) is not
of the type given in part (a).
Proof. Suppose there are q and p for (9, 12, 15). Then 2qp = 12 and qp = 6. Since
q > p are positive integers, the only possibilities are q = 6 and p = 1 or q = 3
and p = 2. The first possibility gives the Pythagorean triple (12, 35, 37) while the
second gives the Pythagorean triple (5, 12, 13).
Problem 21. Let X and Y be finite sets. Show that there is a bijection f : X → Y
if and only if |X| = |Y |. (By definition, a set is finite if it is empty or if it can
be put into a one-to-one correspondence with [k] = {1, 2, . . . , k}, for some integer
k ≥ 1.
17
Define a function f : X → Y by setting f (xi ) = yi for each i = 1, 2, . . . , k. This
function is clearly injective and surjective, hence bijective.
Thus, a bijection exists between X and Y if and only if |X| = |Y |, completing
the proof.
Problem 22. (Pigeonhole Principle) If X and Y are finite sets with the same
number of elements, show that the following conditions are equivalent for a function
f :X →Y.
(a) f is bijective
(b) f is injective
(c) f is surjective
Proof. We shall prove each condition implies the other two for a function f : X → Y ,
given that |X| = |Y |:
Bijective ⇒ Injective and Surjective: By definition, a bijective function is
one that is both injective (one-to-one) and surjective (onto).
Injective ⇒ Bijective: Assume f is injective. Since |X| = |Y |, for each y ∈ Y ,
there must be a distinct x ∈ X such that f (x) = y, otherwise, we would have fewer
images in Y than elements in X. As f covers all elements in Y and maps distinctly,
f is also surjective, and thus bijective.
Surjective ⇒ Bijective: Now assume f is surjective. Given that |X| = |Y |,
every element y ∈ Y is the image of at least one x ∈ X. Since there cannot be more
images in Y than elements in X, f must map distinct elements of X to distinct
elements of Y , which means f is injective. Hence, f is bijective.
Therefore, we have shown that for finite sets X and Y with equal cardinality,
being injective, surjective, and bijective are equivalent conditions for a function
f :X →Y.
Problem 23.
S S
Proof. To prove that f i∈I Si = i∈I f (Si ), we will show that each side
is a subset of the other.
S S
Step 1: f i∈I Si ⊆ i∈I f (Si )
18
S
Take any y ∈ f i∈I Si . By the definition of the image under f , there
S S
exists at least one x ∈ i∈I Si such that f (x) = y. Since x ∈ i∈I Si , there
exists some index j ∈ I such that x ∈ Sj . Applying f to this relationship,
S
we obtain y = f (x) ∈ f (Sj ). Therefore, y ∈ i∈I f (Si ), showing that
S S
f i∈I Si ⊆ i∈I f (Si ).
S S
Step 2: i∈I f (Si ) ⊆ f i∈I Si
S
Now take any y ∈ i∈I f (Si ). This means there exists an j ∈ I such that
y ∈ f (Sj ). By the definition of the image, for this j, there is an x ∈ Sj such
S S
that f (x) = y. Since Sj ⊆ i∈I Si , we also have x ∈ i∈I Si , and therefore
S S S
y = f (x) ∈ f i∈I Si . This shows that i∈I f (Si ) ⊆ f i∈I Si .
S S
Having shown both inclusions, we conclude that f i∈I Si = i∈I f (Si ),
completing the proof.
Proof. Take any element y in f (S1 ∩ S2 ). This means there exists at least
one element x in S1 ∩ S2 such that f (x) = y. Since x is in S1 ∩ S2 , it must
be in both S1 and S2 . Applying f , we have that f (x) is in both f (S1 ) and
f (S2 ). Therefore, y is in f (S1 ) ∩ f (S2 ), which shows that f (S1 ∩ S2 ) ⊆
f (S1 ) ∩ f (S2 ).
Example 1. Consider the sets X = {a, b, c} and Y = {1, 2}. Let S1 = {a, b}
and S2 = {b, c}. Define a function f as follows:
19
First inclusion: This part is straightforward and does not require injectivity.
Take any element y in f (S1 ∩ S2 ). By the definition of the image, there exists
an element x in S1 ∩ S2 such that f (x) = y. Since x is in both S1 and S2 , it
follows that y ∈ f (S1 ) and y ∈ f (S2 ), hence y ∈ f (S1 ) ∩ f (S2 ). This shows
that f (S1 ∩ S2 ) ⊆ f (S1 ) ∩ f (S2 ).
Second inclusion: For the reverse inclusion, assume y ∈ f (S1 ) ∩ f (S2 ).
Then there exist x1 ∈ S1 and x2 ∈ S2 such that f (x1 ) = y and f (x2 ) = y.
Since f is injective, the fact that f (x1 ) = f (x2 ) implies x1 = x2 . Therefore,
x1 (which is equal to x2 ) is in both S1 and S2 , or in other words, x1 ∈ S1 ∩ S2 .
Hence, y = f (x1 ) ∈ f (S1 ∩ S2 ), which shows that f (S1 ) ∩ f (S2 ) ⊆ f (S1 ∩ S2 ).
Since both inclusions have been shown, we conclude that f (S1 ∩ S2 ) =
f (S1 ) ∩ f (S2 ).
x ∈ f −1 −1
(Bλ ) ⊆ f −1
S S S
λ∈Λ Bλ , showing λ∈Λ f λ∈Λ Bλ .
proving f −1 −1
T T
λ∈Λ Bλ ⊆ λ∈Λ f (Bλ ).
Conversely, take any x ∈ λ∈Λ f −1 (Bλ ). This means for all λ ∈ Λ, x ∈
T
hence x ∈ f −1 −1
(Bλ ) ⊆ f −1
T T T
λ∈Λ Bλ , showing λ∈Λ f λ∈Λ Bλ .
20
Proof. To show that f −1 (B c ) = f −1 (B)c , we will prove two inclusions:
f −1 (B c ) ⊆ f −1 (B)c and f −1 (B)c ⊆ f −1 (B c ).
First inclusion: Assume x ∈ f −1 (B c ). This means that f (x) ∈ B c , or in
other words, f (x) ∈ / f −1 (B), and so x ∈ f −1 (B)c . Hence,
/ B. Therefore, x ∈
we have f −1 (B c ) ⊆ f −1 (B)c .
Second inclusion: Now, assume x ∈ f −1 (B)c . This means x ∈ / f −1 (B), or
/ B. Therefore, f (x) ∈ B c , implying x ∈ f −1 (B c ). Thus,
equivalently, f (x) ∈
we have f (B) ⊆ f −1 (B c ).
−1 c
21