Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Number Theory: Math 126 Test 2 Answers - Pythagorean Triples, Fermat's Theorem, Diophantin, Exams of Number Theory

The answers to the second test of math 126, number theory. The test covers various topics such as pythagorean triples, fermat's theorem, diophantine equations, and euler's φ function. Students are provided with solutions to problems that require understanding concepts related to congruences, orders, primitive roots, and the euler's φ function.

Typology: Exams

Pre 2010

Uploaded on 08/07/2009

koofers-user-5es
koofers-user-5es 🇺🇸

5

(1)

10 documents

1 / 2

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Math 126, Number Theory
Second Test Answers
April 2006
Scale. 85–100 A, 70–84 B, 50–69 C. Median 70.
Problem 1. On Pythagorean triples. [18] Recall that a
Pythagorean triple (x, y, z) consists of three positive integers
such that x2+y2=z2. Show that for any Pythagorean triple
at least one of xand yis divisible by 3. [Hint: (mod 3).]
The proof revolves around the fact that the only squares
modulo 3 are 0 and 1. Here’s one version of it.
Suppose that (x, y, z ) is a Pythagorean triple such that
neither xnor yis divisible by 3. Since x2+y2=z2, therefore
x2+y2z2(mod 3)
but neither xnor yis congruent to 0 (mod 3). Then both
xand yare congruent to ±1 (mod 3), hence their squares
x2and y2are congruent to 1 (mod 3), and so their sum
x2+y22 (mod 3). But 2 is not a square modulo 3, so
26≡ z2(mod 3), a contradiction. Thus, no Pythagorean
triple (x, y, z) has neither xnor ydivisible by 3. q.e.d.
Problem 2. Yes/no. [16; 4 points each part] For each of
the following just write “yes” or “no”. No explanation is
needed unless it’s not clear which is correct.
a. Fermat’s theorem implies that for prime p, 2p
2 (mod p). Does the converse hold, that is, if 2p
2 (mod p), then is pprime?
No, pseudoprimes also have this property.
b. If function fis multiplicative, then does that imply that
f(80) = f(8)f(10)?
No, 8 and 10 are not relatively prime. In fact, Euler’s phi
function is multiplicative, but φ(80) = φ(16)φ(5) = 8·4 = 32
while φ(8) = 4 and φ(10) = 4.
c. Is the number 4926834923 is the sum of two squares?
No. It’s congruent to 3 modulo 4, but sums of two squares
modulo 4 can only be congruent to 0, 1, or 2 modulo 4.
d. Does the Chinese remainder theorem imply that the pair
of linear congruences
x7 (mod 16)
x13 (mod 10)
has a unique solution modulo 160?
No. 16 and 10 are not relatively prime.
Problem 3. [18] Find at least two positive solutions of
quadratic Diophantine equation
2x2+xy y2= 35.
[Hint: factor the left side of the equation.]
Factoring the left side, we get
(2xy)(x+y) = 35.
We need to find factorings of 35 so that xand yturn out to
be positive integers.
2xy x +y x y
1 35 12 23
5 7 4 3
7 5 4 1
35 1 12 11
The three positive solutions for (x, y) are (4,3), (4,1), and
(12,23).
Problem 4. [20] On order and primitive roots.
a. Compute ord19(7), the order of 7 modulo 19. [It’s small.]
72= 49 11 (mod 19)
7311 ·7 = 77 1 (mod 19)
Therefore, ord19(7) = 3.
b. Note that 827 (mod 19), and 238 (mod 19). What
does that say about ord19(8) and ord19 (2)?
Since 827 and 731, therefore 861. Hence ord19(8)
divides 6.
In fact, you can quickly rule out the possibilities of
ord19(8) being 1, 2, or 3, so ord19 (8) = 6.
Likewise 238 and 861 so 218 1, so ord19(2) divides
18.
It’s a little more work to show that ord19(2) actually
equals 18.
c. How many primitive roots modulo 19 are there?
1
pf2

Partial preview of the text

Download Number Theory: Math 126 Test 2 Answers - Pythagorean Triples, Fermat's Theorem, Diophantin and more Exams Number Theory in PDF only on Docsity!

Math 126, Number Theory

Second Test Answers

April 2006

Scale. 85–100 A, 70–84 B, 50–69 C. Median 70.

Problem 1. On Pythagorean triples. [18] Recall that a Pythagorean triple (x, y, z) consists of three positive integers such that x^2 +y^2 = z^2. Show that for any Pythagorean triple at least one of x and y is divisible by 3. [Hint: (mod 3).]

The proof revolves around the fact that the only squares modulo 3 are 0 and 1. Here’s one version of it. Suppose that (x, y, z) is a Pythagorean triple such that neither x nor y is divisible by 3. Since x^2 +y^2 = z^2 , therefore

x^2 + y^2 ≡ z^2 (mod 3)

but neither x nor y is congruent to 0 (mod 3). Then both x and y are congruent to ±1 (mod 3), hence their squares x^2 and y^2 are congruent to 1 (mod 3), and so their sum x^2 + y^2 ≡ 2 (mod 3). But 2 is not a square modulo 3, so 2 6 ≡ z^2 (mod 3), a contradiction. Thus, no Pythagorean triple (x, y, z) has neither x nor y divisible by 3. q.e.d.

Problem 2. Yes/no. [16; 4 points each part] For each of the following just write “yes” or “no”. No explanation is needed unless it’s not clear which is correct.

a. Fermat’s theorem implies that for prime p, 2 p^ ≡ 2 (mod p). Does the converse hold, that is, if 2 p^ ≡ 2 (mod p), then is p prime?

No, pseudoprimes also have this property.

b. If function f is multiplicative, then does that imply that f (80) = f (8)f (10)?

No, 8 and 10 are not relatively prime. In fact, Euler’s phi function is multiplicative, but φ(80) = φ(16)φ(5) = 8·4 = 32 while φ(8) = 4 and φ(10) = 4.

c. Is the number 4926834923 is the sum of two squares?

No. It’s congruent to 3 modulo 4, but sums of two squares modulo 4 can only be congruent to 0, 1, or 2 modulo 4.

d. Does the Chinese remainder theorem imply that the pair of linear congruences

{ x ≡ 7 (mod 16) x ≡ 13 (mod 10)

has a unique solution modulo 160?

No. 16 and 10 are not relatively prime.

Problem 3. [18] Find at least two positive solutions of quadratic Diophantine equation

2 x^2 + xy − y^2 = 35.

[Hint: factor the left side of the equation.] Factoring the left side, we get

(2x − y)(x + y) = 35.

We need to find factorings of 35 so that x and y turn out to be positive integers.

2 x − y x + y x y 1 35 12 23 5 7 4 3 7 5 4 1 35 1 12 − 11

The three positive solutions for (x, y) are (4, 3), (4, 1), and (12, 23).

Problem 4. [20] On order and primitive roots.

a. Compute ord 19 (7), the order of 7 modulo 19. [It’s small.]

72 = 49 ≡ 11 (mod 19)

73 ≡ 11 · 7 = 77 ≡ 1 (mod 19)

Therefore, ord 19 (7) = 3. b. Note that 8^2 ≡ 7 (mod 19), and 2^3 ≡ 8 (mod 19). What does that say about ord 19 (8) and ord 19 (2)? Since 8^2 ≡ 7 and 7^3 ≡ 1, therefore 8^6 ≡ 1. Hence ord 19 (8) divides 6. In fact, you can quickly rule out the possibilities of ord 19 (8) being 1, 2, or 3, so ord 19 (8) = 6. Likewise 2^3 ≡ 8 and 8^6 ≡ 1 so 2^18 ≡ 1, so ord 19 (2) divides

It’s a little more work to show that ord 19 (2) actually equals 18.

c. How many primitive roots modulo 19 are there?

For any prime p the number of primitive roots is φ(p − 1). So the number of primitive roots modulo 19 is

φ(18) = φ(2)φ(9) = 1 · 6 = 6.

d. Name one primitive root modulo 19.

There are 6 primitive roots; 2 is one of them, but so are 3, 6, 10, 14, and 15.

Problem 5. [10; 2 points each part] On Euler’s φ function.

a. The φ function counts just what? That is, φ(n) is the number of what?

It’s the number of totatives modulo n. A totative is a positive relatively prime number less than or equal to n. Another way of saying that is that it’s the number of ele- ments in a reduced residue system.

b. Although Euler did not use the symbol φ for this function, and he never called it the totient function, he did invent it, but he didn’t use it just to count things, but for something else. What was that?

Euler generalized Fermat’s theorem for prime numbers to all numbers by inventing φ(n). So he used to show that

aφ(n)^ ≡ 1 (mod n)

for a relatively prime to n.

Problem 6. [18] Solve the pair of linear congruences { 3 x + 2 y ≡ 5 (mod 7) 2 x + 3 y ≡ 6 (mod 7)

Show your work.

There are many ways to solve this pair of linear congru- ences just as there are many ways to solve a pair of linear equations. Here’s one Let’s eliminate x. Double the first congruence and triple the second, then subtract the first from the second. { 6 x + 4 y ≡ 10 (mod 7) 6 x + 9 y ≡ 18 (mod 7)

Therefore, 5y ≡ 8 (mod 7), that is 5y ≡ 1 (mod 7). This single congruence can be solved in many ways, including just searching for the answer, y ≡ 3 (mod 7). We can substitute that back in the first equation to get

3 x + 6 ≡ 5 (mod 7)

which simplifies to 3x ≡ 6 (mod 7), so x ≡ 2 (mod 7). All the processes are invertible modulo 7. We used ad- dition, subtraction, doubling, tripling, and halving, and all those are invertible, the last because 2 and 3 are relatively prime to 7. Therefore, the answer is

x ≡ 2 (mod 7), and y ≡ 3 (mod 7),

but it’s best to check.