RatMath ShelfCourse guide

University: upper level

Number theory

Use the left and right arrow keys to turn pages.

Course summary

Where RatMath helps

87.5%

35 of 40 focal problems use RatMath for a calculation or a substantive step.

Direct calculation
32 · 80%
Assisted
3 · 7.5%
Worked by hand
5 · 12.5%

Using the packages

Exact integers and modular routines support calculations and witness checks. Success on a list of primes cannot establish a statement quantified over every prime.

Calculator interface

Keep the modulus attached to every residue. Offer extended-Euclid steps, probable-prime versus proven-prime labels and a separate pane to replay certificates.

Packages used in the lessons

@ratmath/numtheory (28 days) · @ratmath/core (4 days) · @ratmath/structures (3 days)

How to read the percentages

Each of the 40 focal problems has equal weight. Direct means the displayed package calculation answers the computational question after the inputs are set up. Assisted means it contributes a step and the worked solution supplies essential reasoning, interpretation or selection. Worked by hand means the guide relies on a construction, argument or judgment for that task. The helpful share combines direct and assisted days. Courses and instructors assign different mixes of problems. The percentages describe this syllabus.

Classroom inputs and practical limits

35 of 40 days include a checked executable example. On 10 days the measured size sweep exercises a named API used in the lesson. Each day identifies its tested inputs and the mathematical property checked. Hand-worked days give the input scale and the argument to verify.

Ranges across the five units

Days 1–8 · Divisibility and congruence. Integer operands from units to thousands in hand examples, with several congruences and small moduli.

Unit benchmark · numtheory.gcd, operand bits. Largest passing sample 32,768 (0.183 ms, 75.3 MiB peak process RSS). The runs did not locate a ceiling for this family.

Days 9–16 · Primes and arithmetic functions. Integers often up to 10⁴ for hand factorization and larger known-factor examples in computational work.

Unit benchmark · numtheory.factor, known semiprime. Largest passing sample 1,000,036,000,099 (5.12 ms, 77 MiB peak process RSS). The runs did not locate a ceiling for this family.

Days 17–24 · Quadratic and multiplicative residues. Small primes or odd moduli, usually below a few hundred in hand examples; specify whether inverses and square roots exist.

Unit benchmark · numtheory.modPow, exponent bits. Largest passing sample 8,192 (2.51 ms, 81.1 MiB peak process RSS). The runs did not locate a ceiling for this family.

Days 25–32 · Primality and representation. Small primes, pseudoprimes or deliberately chosen products; difficulty depends strongly on the least factor.

Unit benchmark · numtheory.factor, known semiprime. Largest passing sample 1,000,036,000,099 (5.12 ms, 77 MiB peak process RSS). The runs did not locate a ceiling for this family.

Days 33–40 · Diophantine methods. Two to four integer coefficients in a linear equation, continued fractions of modest period or small quadratic discriminants.

Unit benchmark · numtheory.gcd, operand bits. Largest passing sample 32,768 (0.183 ms, 75.3 MiB peak process RSS). The runs did not locate a ceiling for this family.

Measurement method, runtime limits and complete workload results

Lecture and problem-set sequence

Days 1–8 Divisibility and congruence

Compute gcds, inverses, residue classes and simultaneous congruences.

6 direct calculation · 1 assisted · 1 worked by hand

  1. Day 1 Bézout coefficients
  2. Day 2 Linear congruence
  3. Day 3 Chinese remainder theorem
  4. Day 4 Modular exponent
  5. Day 5 Modular inverse
  6. Day 6 Chinese remainder theorem
  7. Day 7 Divisibility criterion
  8. Day 8 Noncoprime moduli
Days 9–16 Primes and arithmetic functions

Count divisors, evaluate multiplicative functions and prove elementary identities.

7 direct calculation · 0 assisted · 1 worked by hand

  1. Day 9 Euler's totient
  2. Day 10 Fermat's little theorem
  3. Day 11 Divisor functions
  4. Day 12 Möbius function
  5. Day 13 Legendre's formula
  6. Day 14 Prime counting
  7. Day 15 Prime or composite
  8. Day 16 Infinitude of primes
Days 17–24 Quadratic and multiplicative residues

Compare Legendre and Jacobi symbols, solve squares and find orders.

7 direct calculation · 0 assisted · 1 worked by hand

  1. Day 17 Legendre symbol
  2. Day 18 Jacobi symbol
  3. Day 19 Square roots mod p
  4. Day 20 Order of an element
  5. Day 21 Primitive roots
  6. Day 22 Groups of units
  7. Day 23 Squares modulo eight
  8. Day 24 Order divisibility
Days 25–32 Primality and representation

Distinguish witnesses, pseudoprimes and sums of squares.

6 direct calculation · 2 assisted · 0 worked by hand

  1. Day 25 Fermat numbers
  2. Day 26 Carmichael numbers
  3. Day 27 Sums of two squares
  4. Day 28 Irreducibility
  5. Day 29 Number bases
  6. Day 30 Factoring a difference
  7. Day 31 A modular obstruction
  8. Day 32 Valuation of a product
Days 33–40 Diophantine methods

Solve linear equations, use continued fractions and relate factorization to integer solutions.

6 direct calculation · 0 assisted · 2 worked by hand

  1. Day 33 Linear Diophantine equations
  2. Day 34 Frobenius number
  3. Day 35 Continued fractions and Pell's equation
  4. Day 36 Euclid and Bézout
  5. Day 37 Gaussian integers
  6. Day 38 Descent
  7. Day 39 A primitive triple
  8. Day 40 Uniqueness in a residue interval

Start day 1 →