Problem_Set_8
Problem_Set_8
Problem Set 8
Paddington Bear
Due Monday, December 2nd, 2024
Assignment Instructions
• These are to be written up in LATEX and turned in on Gradescope.
• Click here to duplicate this .tex file in Overleaf .
• Write your solutions inside the solution environment.
• You are always encouraged to talk problems through with your peers and your instructor, but your
write up should be done independently.
Statement on generative AI
In this and other mathematics courses, you are expected to construct clear and concise mathematical argu-
ments based on statements proven in our text and class notes. Large language models such as ChatGPT
are unable to produce this kind of solution. They also frequently generate circular logic and outright false
results.
You may use AI to summarise content, generate study plans, create problems, or do other study-related
activities. You may not ask a chatbot to solve your quiz or homework problems, or do any assessment-related
activities.
You may use AI tools to edit your grammar and punctuation, but remember that mathematical English
is not the same as academic English in other disciplines.
1
Problem 1
a) Find d = gcd (29341, 1739) and integers x and y such that 29341x + 1739y = d.
b) Prove that 7 cannot be expressed as an integral linear combination of 29341 and 1739.
222 = 185 · 1 + 37
185 = 37 · 5 + 0
At this point, the remainder is 0, so the gcd is:
d = gcd(29341, 1739) = 37
In order to find x, y.
From the last nonzero remainder:
37 = 222 − 185 · 1
2. Substitute 185 = 1517 − 222 · 6 into the equation:
2
Problem 2
a) Let a, b, c ∈ Z such that a and b are relatively prime. Prove that if a | c and b | c then (ab) | c.
b) Explain why part a) is false if a and b are not relatively prime.
(a) If a | c and b | c, then there exist integers x, y such that c = xa and c = by. This implies xa = by.
Thus, b | xa. However, since a and b are relatively prime, b | x. Therefore, there exists an integer z such
that x = zb. Substituting, we get c = xa = zba, which shows that (ab) | c.
(b) If a and b are not relatively prime, gcd(a, b) = d > 1, then ab cannot simply divide c even if both
a | c and b | c. This is because the common factor d in a and b may ”double count” in ab, and c might not
contain this higher multiplicity of d.
Let a = 6, b = 9, and c = 18. Here:
a | c because 18 ÷ 6 = 3, so c = 6 · 3.
b | c because 18 ÷ 9 = 2, so c = 9 · 2.
However, ab = 6 · 9 = 54, and 54 ∤ 18.
3
Problem 3
Prove that gcd (a, gcd (b, c)) = gcd (gcd (a, b) , c) for all a, b, c ∈ Z.
gcd(a, gcd(b, c)) | gcd(gcd(a, b), c) and gcd(gcd(a, b), c) | gcd(a, gcd(b, c)).
4
Problem 4
Consider the following definition.
Definition. For any subset A ⊆ Z, we say d divides A provided that for any a ∈ A, d | a. We denote this
by d | A.
Prove that d | ({a} ∪ {b} ∪ C) if and only if d | ({gcd (a, b)} ∪ C) for all a, b, d ∈ Z and C ⊆ Z.
d | a, d | b, and d | c, ∀c ∈ C.
d | gcd(a, b).
d | {gcd(a, b)} ∪ C.
Thus:
d | {gcd(a, b)} ∪ C.
Next, we prove (d | {gcd(a, b)} ∪ C =⇒ d | {a} ∪ {b} ∪ C)**
Assume d | {gcd(a, b)} ∪ C. By the definition of d | A, this means:
d | gcd(a, b) and d | c, ∀c ∈ C.
d | a, d | b.
d | {a} ∪ {b} ∪ C.
Thus:
d | {a} ∪ {b} ∪ C.
We have now proven both directions: 1. If d | {a}∪{b}∪C, then d | {gcd(a, b)}∪C, 2. If d | {gcd(a, b)}∪C,
then d | {a} ∪ {b} ∪ C.
Therefore, we conclude:
5
Problem 5
Consider the following definition.
Definition. For any subset A ⊆ Z, gcd (A) is defined to be the greatest common divisor of all elements in
A.
Prove that d | ({a} ∪ B) if and only if d | gcd (a, gcd (B)) for all a, d ∈ Z and finite subsets B ⊆ Z, by
induction on the cardinality of B.
Hint: Use problems 3 and 4.
d | {a, b1 } ⇐⇒ d | gcd(a, b1 ),
for all a, d ∈ Z.
Now we prove the statement for |B| = n + 1
Let B = {b1 , b2 , . . . , bn+1 }. Define B ′ = {b1 , b2 , . . . , bn }, so that |B ′ | = n. By the definition of gcd(B),
we have:
gcd(B) = gcd(gcd(B ′ ), bn+1 ).
We now need to prove:
d | ({a} ∪ B) ⇐⇒ d | gcd (a, gcd(B)) .
Firstly we prove (d | ({a} ∪ B) =⇒ d | gcd(a, gcd(B)))**
Assume d | ({a} ∪ B). By definition, this means:
In particular, we have:
d | bn+1 and d | bi for all bi ∈ B ′ .
By the inductive hypothesis, since d | ({a} ∪ B ′ ), we know:
Additionally, since d | bn+1 , it follows from the definition of the gcd that:
d | gcd(a, gcd(B)).
6
Hence:
d | gcd(a, gcd(B)) =⇒ d | gcd (a, gcd(gcd(B ′ ), bn+1 )) .
By the properties of the gcd, this implies:
d | ({a} ∪ B ′ ) .
d | ({a} ∪ B) .
By induction, we have shown that the statement holds for all finite subsets B ⊆ Z. Specifically, for all
a, d ∈ Z and finite B ⊆ Z, it holds that:
7
Problem 6
a) Disprove: There exist integers a and b such that a + b = 100 and gcd (a, b)) = 8.
b) Prove: There exist infinitely many pairs of integers (a, b) such that a + b = 87 and gcd (a, b) = 3.
(a) We give a proof by contradiction: Assume there exist integers a and b such that:
Since gcd(a, b) = 8, by the properties of the gcd, there exist integers x and y such that:
a = 8x, b = 8y,
8x + 8y = 100 ⇒ x + y = 12.5.
But this is clearly impossible because x and y are integers. This proves that there do not exist integers
a and b such that a + b = 100 and gcd(a, b) = 8.
(b) Proof:
Let a = 3x and b = 3y, where x and y are integers. Since gcd(a, b) = 3, by the properties of the gcd, we
must have:
gcd(x, y) = 1,
i.e., x and y must be relative prime.
Substituting a = 3x and b = 3y into a + b = 87, we get:
3x + 3y = 87 ⇒ x + y = 29.
We only need to find pairs of integers (x, y) that satisfy x + y = 29 and gcd(x, y) = 1. For example:
x = 1, y = 28
x = 2, y = 27
x = 4, y = 25
x = 5, y = 24
and so on.
Let x = k and y = 29 − k. For every k such that gcd(k, 29 − k) = 1, we can construct (a, b) = (3x, 3y),
which satisfies a + b = 87 and gcd(a, b) = 3. There are infinitely many such k, so there are infinitely many
valid pairs (a, b).
8
Problem 7
Let a, b ∈ Z. Prove by induction on b that there exists x, y ∈ Z such that gcd (a, b) = ax + by.
We will prove by mathematical induction on b ≥ 0 that for any integers a, b ∈ Z, there exist integers
x, y ∈ Z such that:
gcd(a, b) = ax + by.
When b = 1, we have gcd(a, b) = gcd(a, 1) = 1. We can directly set x = 0 and y = 1, since:
gcd(a, 1) = a · 0 + b · 1.
Thus, the base case holds.
Now assume that for some b = k (where k ≥ 1), the statement holds. That is, for any integer a, there
exist integers x, y ∈ Z such that:
gcd(a, k) = ax + ky.
Now assume b = k + 1. We need to prove that for any integer a, there exist x, y ∈ Z such that:
gcd(a, k + 1) = ax + (k + 1)y.
By the division algorithm, we can write:
k + 1 = qk + r,
This shows that gcd(a, k + 1) (which equals gcd(a, r)) can be written as:
gcd(a, k + 1) = ax + (k + 1)y,
9
Problem 8
a) Perform the Euclidean Algorithm to show that the greatest common divisor of 61 and 14 is 1.
61
b) The continued fraction of is
14
61 1
=4+ .
14 1
2+
1
1+
4+0
2024
Use this example with your answer from part a) to write the continued fraction for .
314
61 = 14 · 4 + 5
14 = 5 · 2 + 4
5=4·1+1
4=1·4+0
2024 = 314 · 6 + 80
314 = 80 · 3 + 74
80 = 74 · 1 + 6
74 = 6 · 12 + 2
6=2·3+0
Quotients: 6, 3, 1, 12, 3.
The continued fraction is:
2024 1
=6+
314 1
3+
1
1+
1
12 +
3
Why do we care about continued fractions? Continued fractions are good for calculating rational approx-
imations for irrational numbers. For example, π has a continued fraction that never terminates:
π 1
=3+ .
1 1
7+
1
15 +
···
1 22
Truncating the continued fraction after two steps gives us a common approximation for π: π ≈ 3 + = .
7 7
10