The sixty problems below are arranged in three groups. The Core problems check the definitions, computations and algorithms of the lessons; the Advanced problems require short proofs or multi-step calculations; the Challenge problems are of the kind found in graduate texts and qualifying examinations.
Core (Problems 1–20)
- 1.Using only the recursive definitions of Lesson 1, compute 2 · 3, recording each step.
- 2.Prove from the definitions that a + 1 = S(a) and 1 + a = S(a) for every a ∈ ℕ.
- 3.Which of the pairs (0, 5), (5, 0), (10, 15), (8, 3) represent the same integer as (3, 8)?
- 4.Compute [(2, 7)] · [(4, 1)] in ℤ = (ℕ × ℕ)/∼ and give its normal form.
- 5.In the construction of ℚ, verify that (1, 2) ∼ (3, 6), and compute (1, 2) + (1, 3) and (1, 2) · (1, 3) as pairs.
- 6.Find the quotient and remainder (with 0 ≤ r < b) for a = −47, b = 6 and for a = −100, b = 7.
- 7.Find gcd(252, 198) by Euclid's algorithm and express it as 252x + 198y.
- 8.Factor 360 into primes and find its number of positive divisors τ(360) and their sum σ(360).
- 9.Find the last digit of 7²²².
- 10.Find the inverse of 7 modulo 26.
- 11.Solve the congruence 5x ≡ 3 (mod 12).
- 12.Write 2026 in bases 2, 8 and 16.
- 13.Convert 101101₂, 2201₃ and 7EA₁₆ to decimal.
- 14.Write the repeating decimal 0.363636… as a fraction in lowest terms.
- 15.Which of 1/40, 1/12, 7/80 and 3/14 have terminating decimal expansions?
- 16.Prove that √3 is irrational using the fundamental theorem of arithmetic.
- 17.State the machine epsilon and the unit roundoff of binary64, as powers of 2 and in decimal.
- 18.Decode the binary32 word 0 10000001 10100000000000000000000.
- 19.Explain precisely why 0.1 + 0.2 == 0.3 evaluates to false in binary64 arithmetic.
- 20.Compute 12 × 34 by one level of Karatsuba's method with B = 10.
Advanced (Problems 21–45)
- 21.Prove that if a, b ∈ ℕ and ab = 1, then a = b = 1.
- 22.Prove the principle of strong induction from the well-ordering principle.
- 23.Prove that the order on ℤ defined by [(a, b)] ≤ [(c, d)] ⟺ a + d ≤ b + c is well defined.
- 24.In an ordered field, prove that for a, b > 0 we have a < b if and only if a² < b².
- 25.Prove that no finite field can be ordered.
- 26.In ℚ(t) with the ordering of Lesson 4, show that 1/t is positive and smaller than every positive rational number.
- 27.Divide 11 + 3i by 1 + 2i in ℤ[i], giving q and r with N(r) < N(1 + 2i).
- 28.Find gcd(x⁶ − 1, x⁴ − 1) in ℚ[x] by the Euclidean algorithm.
- 29.How many trailing zeros does 1000! have?
- 30.Compute v₃(50!) by Legendre's formula and confirm it with the digit-sum formula.
- 31.Show that 2 and 1 + √−5 are irreducible in ℤ[√−5] and are not associates.
- 32.Find all x with x ≡ 1 (mod 4), x ≡ 2 (mod 5), x ≡ 3 (mod 7).
- 33.Compute 2²⁰²⁶ mod 101.
- 34.Find the last three digits of 3⁴⁰².
- 35.List the units and the zero divisors of ℤ/12ℤ, and check that their numbers are φ(12) and 12 − 1 − φ(12).
- 36.Find the decimal periods of 1/17, 1/37 and 1/41.
- 37.Prove the divisibility test for 11: n is divisible by 11 if and only if its alternating digit sum is.
- 38.Write 25 and 100 in balanced ternary.
- 39.Write 6 and −3 in base −2.
- 40.Prove that the sum A + B of two Dedekind cuts is a cut.
- 41.Let aₙ be the decimal truncation of √2 to n places. Show that (aₙ) is a Cauchy sequence of rationals.
- 42.Find the largest finite binary32 number exactly and to five significant figures.
- 43.What is the ulp (spacing of consecutive binary64 numbers) at 2026.0, and how many binary64 numbers lie in [1024, 2048)?
- 44.Bound the relative error of the floating-point evaluation fl(x · fl(y + z)) for floating-point x, y, z with y + z ≠ 0.
- 45.Compute the relative condition numbers of f(x) = √x, f(x) = x − 1 and f(x) = sin x, and say where each is ill-conditioned.
Challenge (Problems 46–60)
- 46.Deduce the recursion theorem with a parameter from Theorem 1.3.
- 47.Prove that the ideal (2, x) of ℤ[x] is not principal.
- 48.Prove that there are infinitely many primes congruent to 3 modulo 4.
- 49.Prove that gcd(2ᵐ − 1, 2ⁿ − 1) = 2gcd(m, n) − 1, and compute gcd(4095, 262143).
- 50.Show that Euclid's algorithm on the pair (F(n+2), F(n+1)) takes exactly n division steps, so Lamé's bound is sharp.
- 51.Prove that ℝ has exactly one ordering making it an ordered field, and deduce that the only field automorphism of ℝ is the identity.
- 52.Show that the number of idempotents (x² = x) in ℤ/nℤ is 2ω(n), where ω(n) is the number of distinct primes dividing n. List the idempotents of ℤ/360ℤ by their count and of ℤ/10ℤ explicitly.
- 53.Prove that every Cauchy sequence of rationals is bounded and that the product of two Cauchy sequences is Cauchy.
- 54.Show that the implication x ≠ y ⇒ x ⊖ y ≠ 0 fails in binary64 if subnormal results are flushed to zero, using x = 1.5 × 2⁻¹⁰²² and y = 2⁻¹⁰²².
- 55.The population variance of the data 10⁹ + 4, 10⁹ + 7, 10⁹ + 13, 10⁹ + 16 is to be computed. Compare the one-pass formula (1/n)Σxᵢ² − x̄² with the two-pass formula (1/n)Σ(xᵢ − x̄)² in binary64.
- 56.Let a ≥ b ≥ 0 be floating-point numbers and s = a ⊕ b. Using the Sterbenz lemma, prove that s ⊖ a is computed exactly.
- 57.Solve the Karatsuba recurrence T(1) = 1, T(n) = 3T(n/2) + cn exactly for n = 2ᵏ.
- 58.Show that Toom-k multiplication has exponent logk(2k − 1), compute it for k = 2, 3, 4, and show that it tends to 1.
- 59.Newton's iteration for 1/d is started with error |e₀| = 1/2. How many iterations are needed to guarantee 10⁶ correct bits?
- 60.(Midy's theorem.) Let p be a prime, p ≠ 2, 5, such that the decimal period of 1/p is even, say 2k. Prove that 10ᵏ ≡ −1 (mod p) and that the two halves of the repeating block of 1/p add to 10ᵏ − 1. Check it for 1/7 and 1/17.