MAT315
MAT315
(a) (3 points) What is the quotient when r is divided by s? What is the quotient in the second line of Euclid’s algorithm?
What is the quotient in the third? After how many lines will Euclid’s algorithm end? Justify your answers with a
proof.
(b) (2 points) Show that
r 1 1
− a+ ≤
s b b(b + 1)
r
Note that this is an exceptionally good approximation for s while not having numbers of larger size. Take a = 2, b = 5,
c = 5, d = 3 and find rs and compare with ab+1
b .
Exercise 4. In this question we consider the ways factorization can help solve Diophantine equations
(a) (1 point) List all positive integer solutions to the equations x2 = 7 + y 2 and x2 = 12 + y 2 .
(b) (4 points) Let n be a (non-square) odd positive integer. How many positive integer solutions are there to x2 = n + y 2 ?
How does the count change when n is an odd square?
The case of an even n is more delicate, can you see why?