Course Test · University: upper level

Number theory: test

Bézout coefficients, linear congruences and the Chinese remainder theorem, Euler's theorem and fast powers, ( arphi), (sigma), ( au) and (mu), perfect and Carmichael numbers, Legendre and Jacobi symbols, square roots modulo a prime, orders and primitive roots, factoring a Fermat number, sums of two squares, linear Diophantine equations and the Frobenius number, continued fractions, Pell's equation, Legendre's formula and the prime-counting function.

Twenty exercises of the kind this course sets. Answers are on the independent answers page; the same exercises done with RatMath are on the RatMath answers page.

  1. 1.Bézout coefficients
    Find gcd⁡(252,198)\gcd(252, 198) and integers x,yx, y with 252x+198y=gcd⁡(252,198)252x + 198y = \gcd(252, 198).
  2. 2.Linear congruence
    Solve 17x≡3(mod29)17x \equiv 3 \pmod{29}.
  3. 3.Chinese remainder theorem
    Find the least positive xx with x≡2(mod3)x \equiv 2 \pmod 3, x≡3(mod5)x \equiv 3 \pmod 5, x≡2(mod7)x \equiv 2 \pmod 7.
  4. 4.Euler's totient
    Compute φ(360)\varphi(360).
  5. 5.Fermat's little theorem
    Find 3100 mod 73^{100} \bmod 7.
  6. 6.Divisor functions
    Compute σ(28)\sigma(28) and τ(28)\tau(28). Is 28 perfect?
  7. 7.Möbius function
    Compute μ(30)\mu(30) and μ(12)\mu(12).
  8. 8.Legendre symbol
    Evaluate (511)\left(\frac{5}{11}\right).
  9. 9.Jacobi symbol
    Evaluate the Jacobi symbol (215)\left(\frac{2}{15}\right). Is 2 a square mod 15?
  10. 10.Square roots mod p
    Solve x2≡10(mod13)x^2 \equiv 10 \pmod{13}.
  11. 11.Order of an element
    Find the multiplicative order of 2 modulo 11.
  12. 12.Primitive roots
    Find the least primitive root modulo 13.
  13. 13.Fermat numbers
    Factor F5=232+1F_5 = 2^{32} + 1.
  14. 14.Carmichael numbers
    Show 561 is composite but a560≡1(mod561)a^{560} \equiv 1 \pmod{561} for every aa coprime to 561.
  15. 15.Sums of two squares
    Write 65 as a sum of two squares in every way (a≥b>0a \ge b > 0).
  16. 16.Linear Diophantine equations
    Find all solutions of 3x+5y=473x + 5y = 47 in non-negative integers.
  17. 17.Frobenius number
    Chicken nuggets come in boxes of 6, 9 and 20. What is the largest number that cannot be bought exactly?
  18. 18.Continued fractions and Pell's equation
    Find the continued fraction of 13\sqrt{13}, and the smallest positive solution of x2−7y2=1x^2 - 7y^2 = 1.
  19. 19.Legendre's formula
    What is the largest power of 2 dividing 100!100!?
  20. 20.Prime counting
    How many primes are below 1000?