The Lumenary · Advanced undergraduate
Number theory
Name: ______________________
Date: ______________________
You will learn to
- Prove that is cyclic for prime, find primitive roots, and determine which moduli have them
- Prove Euler's criterion and the law of quadratic reciprocity, and compute Legendre symbols with them
- Use Dirichlet convolution and Möbius inversion to work with arithmetic functions
- Characterise the primes that are sums of two squares
- Prove that Pell's equation has infinitely many solutions, all generated by one, and find it with continued fractions
- 1.
How many primitive roots are there modulo ?
- 2.
Use quadratic reciprocity to compute the Legendre symbol . (Enter or .)
- 3.
For which moduli does a primitive root exist? (Select all that apply.)
- A.
- B.
- C.
- D.
- E.
- F.
- 4.
Which of these numbers are sums of two squares of integers? (Select all that apply.)
- A.
- B.
- C.
- D.
- E.
- 5.
In the proof of Euler's criterion, let be a primitive root modulo an odd prime and . Why is exactly when is even?
- A., which is iff divides , i.e. iff is even.
- B.Because by Fermat's little theorem.
- C.Because .
- D.Because every even number is a square.
- 6.
Compute , where is the Möbius function.
- 7.
The fundamental solution of is . Using composition, , find the next solution. What is its ?
- 8.
In Lean,
legendreSym p ais the Legendre symbol . Which statement is the law of quadratic reciprocity for primesp,q(with[Fact p.Prime] [Fact q.Prime])?- A.
p ≠ 2 → q ≠ 2 → p ≠ q → legendreSym q p * legendreSym p q = (-1) ^ (p / 2 * (q / 2)) - B.
legendreSym q p * legendreSym p q = (-1) ^ (p / 2 * (q / 2)) - C.
p ≠ 2 → q ≠ 2 → p ≠ q → legendreSym q p = legendreSym p q - D.
p ≠ 2 → q ≠ 2 → p ≠ q → legendreSym q p * legendreSym p q = (-1) ^ (p * q / 4)
- A.
- 9.
Write
order(a, n)returning the multiplicative order of modulo (assume , ), andprimitive_roots(p)returning the sorted list of primitive roots modulo a prime . Check that there are of them.Computational — Practice