This post collects 30 elementary number theory exercises, covering congruences, quadratic residues, primitive roots, Diophantine equations, cyclotomic polynomials, Dirichlet density, and more.
Problem 1. Let be an odd prime. For each integer , let be a positive integer satisfying .
- Prove that .
- Let be the sum of the first positive integers: . Prove that for all primes , .
Problem 2. Let and be odd primes. Suppose divides the Mersenne number . Prove that .
Problem 3. Consider the quadratic congruence , where is an odd prime and .
- Let be a solution to . Prove that there exists a unique integer modulo such that is a solution to the congruence modulo .
- Prove that for every positive integer , the equation has a solution.
Problem 4. Consider the Diophantine equation .
- Prove that the cube of any integer is congruent to , or modulo .
- Prove that has only the trivial solution .
Problem 5. Consider the equation .
- Find the smallest positive integer solution .
- Define the sequence of solutions by . Prove that is always odd.
- Prove that is the set of all positive integer solutions.
Problem 6. Let denote the Möbius function, and let denote the -th cyclotomic polynomial. We have .
- Express as a rational function of terms of the form .
- Let be a prime. Prove that .
Problem 7. Find the remainder of upon division by .
Problem 8. Let be coprime to . Prove that .
Problem 9. Let be a prime. Suppose there exists an integer whose multiplicative order modulo is .
- Prove that .
- Prove that .
- Determine the multiplicative order of modulo , and prove your answer.
Problem 10. Let be an odd prime with . Determine the condition on for the congruence to have a solution.
Problem 11. Solve the Diophantine equation .
Problem 12.
- Prove that for any prime and positive integer , the equation has exactly two solutions, and write them down.
- Find all solutions to .
Problem 13. Let be an odd prime.
- Prove that for all integers , the binomial coefficient satisfies .
- Compute modulo .
Problem 14. Consider the linear system over the finite field (with prime):
For which does this system have a solution?
Problem 15. Let be an odd prime and a primitive root modulo .
- Prove that .
- For which odd primes is still a primitive root modulo ? Provide a proof.
Problem 16. Let be an integer strictly greater than . Prove that is never prime. (Hint: use the identity .)
Problem 17. Find all rational solutions to . (Hint: use the substitution , .)
Problem 18. Let be an odd prime and an integer not divisible by .
- Prove that , where the parentheses denote the Legendre symbol.
- Count the number of solutions to .
Problem 19. Consider the Diophantine equation .
- Prove that if is an integer solution with , then is odd and is even.
- Prove that in the Gaussian integer ring , the elements and are coprime.
- Prove that there exist integers such that
Problem 20. Consider the system of linear congruences:
- Prove that this system has a solution if and only if .
- For , find all solutions.
Problem 21. Find all odd primes such that is a quadratic residue modulo . What is the Dirichlet density of this set of primes?
Problem 22. Let be all the quadratic residues modulo . Prove that
Problem 23. Prove that the equation has no integer solutions, yet for every prime , this equation has a solution modulo .
Problem 24. Consider the ring of Eisenstein integers , where . For any , define its norm by . Let such that neither nor is divisible by . Suppose and are coprime in .
- Must and be coprime in ? If true, prove it; if false, provide a counterexample.
- Let be the greatest common divisor of and in . Prove that .
Problem 25. Prove that for any given positive integer , there exist infinitely many primes whose decimal representation ends in digits all equal to .
Problem 26. Let be the set of primes such that , and the set of primes such that . Find the Dirichlet density of , of , and of .
Problem 27. Prove that every arithmetic progression
must contain a composite number.
Problem 28.
- Let be a positive integer. Prove that if is prime, then is a power of .
- For , let , called the Fermat numbers. Prove that if , then .
- Prove that if , then . Use this to prove that there are infinitely many primes.
Problem 29. Find the last two decimal digits of .
Problem 30. Let be an odd prime. Prove that every primitive root modulo is a quadratic non-residue modulo . For which odd primes are all quadratic non-residues also primitive roots?