Skip to main content

Exercises — Module 16 (The Spectral Test in Higher Dimensions)

Self-contained problems on this module's material — the dual pair and its anchor identity UV⊤=mIUV^\top = mI, size reduction (Algorithm R), certified enumeration (Algorithm E), the figures of merit μt\mu_t, and the RANDU case study. You can work every one without the books: each states the problem in full, gives a hint to peek at when stuck, and a worked answer sketch to check against. Computational answers here are reproduced by the code you write in the lab (or a few lines at a REPL).

Ratings follow Knuth's scale (00–50; M = needs mathematics, ▶ = especially instructive). The H-numbers are this course's curated list; if you own Vol. 2, §3.3.4's own exercises (notably ex. 7, the theory behind step S8's bound) continue the story.

Tracking​

#TopicRatingStatus
H1▶ adj⁡(V)=±U⊤\operatorname{adj}(V) = \pm U^\top — cofactor columns are the primal rowsM15⬜
H2The floor lemma behind E2's integer boundsM18⬜
H3▶ RANDU's (x−3)2(x-3)^2 ideal; derive (9,3,−5,1)(9, 3, -5, 1)M25⬜
H4Instrument box sizes, unreduced vs. reduced22⬜
H5▶ t=2t = 2 fixpoint optimality; a t=3t = 3 counterexampleM28⬜
H6Extend the pipeline to t=7,8t = 7, 830⬜
H7Ellipsoid (Cholesky) pruning à la S9–S10M32⬜
H8Hermite caps on μ4,μ5,μ6\mu_4, \mu_5, \mu_6M20⬜
H9Mini Fishman–Moore search for m=214−3m = 2^{14} - 325⬜

Problems​

H1. ▶ adj⁡(V)=±U⊤\operatorname{adj}(V) = \pm U^\top — the cofactor columns are the primal rows (rating M15)​

Problem. The dual pair satisfies the anchor identity UV⊤=mIUV^\top = mI (§2), and det⁡V=±m\det V = \pm m (Lemma D). Prove that adj⁡(V)=±U⊤\operatorname{adj}(V) = \pm U^\top, where adj⁡(V)\operatorname{adj}(V) is the adjugate (transpose of the cofactor matrix). Conclude that the cofactor columns gig_i that Algorithm E computes in step E2 are exactly the rows of the primal basis UU (up to sign), so Knuth's step-S8 bound and E2's bound are the same integers.

Hint. The defining property of the adjugate is Vadj⁡(V)=(det⁡V)IV \operatorname{adj}(V) = (\det V) I. Rearrange UV⊤=mIUV^\top = mI into a statement of the same shape, and use that VV is invertible (det⁡V=±m≠0\det V = \pm m \ne 0).

Answer sketch. From UV⊤=mIUV^\top = mI, transpose to get VU⊤=mIV U^\top = mI (since (UV⊤)⊤=VU⊤(UV^\top)^\top = V U^\top and (mI)⊤=mI(mI)^\top = mI). Compare with the adjugate law Vadj⁡(V)=(det⁡V) I=±mIV \operatorname{adj}(V) = (\det V)\, I = \pm m I. Both say "VV times something =(scalar) I= (\text{scalar})\,I"; since VV is invertible, that something is unique: V−1=U⊤/m=adj⁡(V)/det⁡VV^{-1} = U^\top/m = \operatorname{adj}(V)/\det V, hence

adj⁡(V)=det⁡VmU⊤=±U⊤,\operatorname{adj}(V) = \frac{\det V}{m} U^\top = \pm U^\top,

the sign being det⁡V/m=±1\det V / m = \pm 1. So the cofactor column gig_i (column ii of adj⁡(V)\operatorname{adj}(V)) equals ±\pm(row ii of UU). E2's box edges zi=⌊best⁡⋅∣gi∣2/(det⁡V)2⌋z_i = \lfloor \sqrt{\operatorname{best}\cdot |g_i|^2 / (\det V)^2} \rfloor therefore use ∣gi∣2=∣ui∣2|g_i|^2 = |u_i|^2 and (det⁡V)2=m2(\det V)^2 = m^2, i.e. zi=⌊best⁡⋅∣ui∣2/m2⌋z_i = \lfloor \sqrt{\operatorname{best}\cdot |u_i|^2 / m^2} \rfloor — precisely Knuth's S8 bound. The abstract inverse in Cramer's rule was sitting in memory as the honest integer matrix UU all along. ■\blacksquare

H2. The floor lemma behind E2's integer bounds (rating M18)​

Problem. Algorithm E's step E2 floors before taking the square root: zi=⌊⌊N/D⌋⌋z_i = \lfloor \sqrt{\lfloor N/D \rfloor} \rfloor with N=best⁡⋅∣gi∣2N = \operatorname{best}\cdot|g_i|^2 and D=(det⁡V)2D = (\det V)^2, rather than ⌊N/D⌋\lfloor \sqrt{N/D} \rfloor. Prove these are equal: for positive integers N,DN, D and an integer x≥0x \ge 0,

x2≤N/D  ⟺  x2≤⌊N/D⌋,x^2 \le N/D \iff x^2 \le \lfloor N/D \rfloor,

and hence ⌊N/D⌋=⌊⌊N/D⌋⌋\lfloor \sqrt{N/D} \rfloor = \lfloor \sqrt{\lfloor N/D \rfloor} \rfloor. Where would a naive floating-point sqrt break this?

Hint. x2x^2 is an integer. An integer ≤\le a rational is ≤\le its floor.

Answer sketch. (⇐\Leftarrow) ⌊N/D⌋≤N/D\lfloor N/D \rfloor \le N/D always, so x2≤⌊N/D⌋⇒x2≤N/Dx^2 \le \lfloor N/D \rfloor \Rightarrow x^2 \le N/D. (⇒\Rightarrow) If x2≤N/Dx^2 \le N/D then, since x2x^2 is an integer and ⌊N/D⌋\lfloor N/D \rfloor is the greatest integer ≤N/D\le N/D, we get x2≤⌊N/D⌋x^2 \le \lfloor N/D \rfloor. So the two conditions pick out the same integers xx, and the largest such xx — which is ⌊N/D⌋\lfloor \sqrt{N/D} \rfloor on the left and ⌊⌊N/D⌋⌋\lfloor \sqrt{\lfloor N/D \rfloor} \rfloor on the right — coincide. Flooring the quotient first is therefore lossless, and it lets the whole bound be computed in exact integer arithmetic (isqrt of an integer). A floating sqrt on N/DN/D can round a value like k2\sqrt{k^2} to k−εk - \varepsilon and floor it to k−1k - 1, silently shrinking the box and excluding the true minimum — the certification of §5 would then certify a wrong answer. Integer flooring cannot do that; this is why §7's "exact i128 end to end" is not fussiness but correctness. ■\blacksquare

H3. ▶ RANDU's (x−3)2(x-3)^2 ideal; derive (9,3,−5,1)(9, 3, -5, 1) (rating M25)​

Problem. For RANDU, a=65539a = 65539, m=231m = 2^{31}. Identify a dual vector u=(u1,…,ut)u = (u_1, \dots, u_t) with the polynomial P(x)=u1+u2x+⋯+utxt−1P(x) = u_1 + u_2 x + \cdots + u_t x^{t-1}. (a) Show uu is dual iff P(a)≡0(modm)P(a) \equiv 0 \pmod m. (b) Show every polynomial multiple of (x−3)2(x - 3)^2 gives a dual vector, using (a−3)2=232(a - 3)^2 = 2^{32}. (c) Derive (9,3,−5,1)(9, 3, -5, 1) from (x−3)2(x+1)(x - 3)^2(x + 1) and confirm its norm2^2 is 116<118116 < 118 (the t=3t = 3 minimum from (9,−6,1)(9, -6, 1)). (d) Search small multiples (x−3)2(c0+c1x+c2x2)(x - 3)^2(c_0 + c_1 x + c_2 x^2) and confirm none beats 116116 — matching ν52=ν62=116\nu_5^2 = \nu_6^2 = 116.

Hint. The dual condition is u1+au2+⋯+at−1ut≡0(modm)u_1 + a u_2 + \cdots + a^{t-1} u_t \equiv 0 \pmod m, which is exactly P(a)≡0P(a) \equiv 0. And a−3=65536=216a - 3 = 65536 = 2^{16}, so (a−3)2=232≡0(mod231)(a-3)^2 = 2^{32} \equiv 0 \pmod{2^{31}}.

Answer sketch. (a) The dual lattice is {u:u1+au2+⋯+at−1ut≡0(modm)}\{u : u_1 + a u_2 + \cdots + a^{t-1} u_t \equiv 0 \pmod m\}, and the left side is literally P(a)P(a); so u∈L∗u \in L^* iff P(a)≡0(modm)P(a) \equiv 0 \pmod m. (b) a−3=216a - 3 = 2^{16}, so (a−3)2=232=2⋅231≡0(modm)(a - 3)^2 = 2^{32} = 2 \cdot 2^{31} \equiv 0 \pmod{m}. If P(x)=(x−3)2Q(x)P(x) = (x - 3)^2 Q(x) then P(a)=(a−3)2Q(a)≡0P(a) = (a-3)^2 Q(a) \equiv 0, so every multiple of (x−3)2(x-3)^2 is dual. (c) (x−3)2=x2−6x+9(x-3)^2 = x^2 - 6x + 9, and

(x−3)2(x+1)=x3−5x2+3x+9,(x-3)^2(x+1) = x^3 - 5x^2 + 3x + 9,

whose coefficient vector (constant term first) is u=(9,3,−5,1)u = (9, 3, -5, 1); its norm2^2 is 81+9+25+1=11681 + 9 + 25 + 1 = 116, just under the t=3t = 3 witness (9,−6,1)(9, -6, 1)'s 81+36+1=11881 + 36 + 1 = 118. (Both verified dual by direct evaluation mod 2312^{31}.) (d) Scanning all (x−3)2(c0+c1x+c2x2)(x-3)^2(c_0 + c_1 x + c_2 x^2) with small ∣ci∣|c_i| (degree ≤4\le 4, so t≤5t \le 5; padding with zeros keeps them dual for t=6t = 6), every nonzero multiple has norm2≥116^2 \ge 116, attained by (9,3,−5,1)(9, 3, -5, 1). This is the polynomial-side shadow of what Algorithm E proves without polynomials: ν52=ν62=116\nu_5^2 = \nu_6^2 = 116 — RANDU never heals (§6). ■\blacksquare

H4. Instrument box sizes, unreduced vs. reduced (rating 22)​

Problem. Algorithm E's cost is the number of integer points in its box, ∏i(2zi+1)\prod_i (2 z_i + 1). Instrument the pipeline: for the four benchmark generators, print the box bounds zz and the candidate count at t=2,…,6t = 2, \dots, 6, computed on the unreduced dual basis and on the reduced one. Confirm the §5 table of reduced counts and quantify "reduction is the whole economy."

Hint. The box edge is zi=⌊best⁡⋅∣gi∣2/(det⁡V)2⌋z_i = \lfloor \sqrt{\operatorname{best}\cdot|g_i|^2 / (\det V)^2} \rfloor, where best⁡\operatorname{best} is the shortest row norm2^2 and gig_i the cofactor columns (H1: gi=±uig_i = \pm u_i). On the unreduced basis the rows are huge (∣v1∣2=m2|v_1|^2 = m^2), so best⁡\operatorname{best} and the ∣gi∣|g_i| are huge; reduction shrinks both.

Answer sketch. On the reduced bases the candidate counts match §5's table exactly:

generatorttbox bounds zzcandidates ∏(2zi+1)\prod(2z_i{+}1)
RANDU3(0,0,1)(0, 0, 1)33
RANDU6(0,0,1,1,1,1)(0, 0, 1, 1, 1, 1)8181
16807, m=231−1m = 2^{31}-16(0,0,0,1,0,1)(0, 0, 0, 1, 0, 1)99
48271, m=231−1m = 2^{31}-16(1,1,1,1,1,1)(1, 1, 1, 1, 1, 1)729729

(Each count is the product of 2zi+12z_i + 1: 3,34=81,32=9,36=7293, 3^4 = 81, 3^2 = 9, 3^6 = 729.) On the unreduced basis the first row has ∣v1∣2=m2≈4.6×1018|v_1|^2 = m^2 \approx 4.6\times10^{18}, so best⁡\operatorname{best} starts at that scale and the ziz_i balloon into the millions — an astronomically larger box for the same lattice and the same provable answer (§5's certificate is valid for any basis). A ziz_i of 00 is the certificate saying "no vector shorter than the best row uses row ii at all." Reduction changes nothing about correctness and everything about cost: that is the reduce-then-enumerate bargain. (All reduced counts reproduced by the lab pipeline; the unreduced explosion by evaluating the same ziz_i formula on the raw dual basis.)

H5. ▶ t=2t = 2 fixpoint optimality; a t=3t = 3 counterexample (rating M28)​

Problem. (a) Prove the t=2t = 2 fixpoint claim of §3: if a rank-2 basis is pairwise size-reduced (in both orders), then its shorter row is a shortest lattice vector. Adapt module 12's quadratic-form inequality α2−∣αβ∣+β2≥1\alpha^2 - |\alpha\beta| + \beta^2 \ge 1. (b) Show by an explicit example that at t=3t = 3 a pairwise-reduced basis need not contain a shortest vector.

Hint. For (a), a reduced rank-2 basis has 2∣v1⋅v2∣≤min⁡(∣v1∣2,∣v2∣2)2|v_1 \cdot v_2| \le \min(|v_1|^2, |v_2|^2); write any lattice vector as αv1+βv2\alpha v_1 + \beta v_2 and bound its norm below. For (b), search small integer bases where every pair satisfies the reduced condition but v1+v2+v3v_1 + v_2 + v_3 is shorter than all three rows.

Answer sketch. (a) Let v1,v2v_1, v_2 be reduced with ∣v1∣≤∣v2∣|v_1| \le |v_2|, so 2∣v1⋅v2∣≤∣v1∣22|v_1 \cdot v_2| \le |v_1|^2. Any nonzero lattice vector is w=αv1+βv2w = \alpha v_1 + \beta v_2 with integers α,β\alpha, \beta not both zero. Then

∣w∣2=α2∣v1∣2+2αβ(v1⋅v2)+β2∣v2∣2≥α2∣v1∣2−∣αβ∣ ∣v1∣2+β2∣v1∣2=(α2−∣αβ∣+β2) ∣v1∣2,|w|^2 = \alpha^2 |v_1|^2 + 2\alpha\beta (v_1\cdot v_2) + \beta^2 |v_2|^2 \ge \alpha^2 |v_1|^2 - |\alpha\beta|\,|v_1|^2 + \beta^2 |v_1|^2 = (\alpha^2 - |\alpha\beta| + \beta^2)\,|v_1|^2,

using 2∣v1⋅v2∣≤∣v1∣2≤∣v2∣22|v_1\cdot v_2| \le |v_1|^2 \le |v_2|^2. The integer form α2−∣αβ∣+β2≥1\alpha^2 - |\alpha\beta| + \beta^2 \ge 1 for (α,β)≠(0,0)(\alpha,\beta) \ne (0,0) (module 12's rank-2 miracle) gives ∣w∣2≥∣v1∣2|w|^2 \ge |v_1|^2. So the shorter row v1v_1 is a shortest lattice vector — the Gauss–Lagrange optimality §3 inherits. (b) A pairwise-reduced t=3t = 3 basis that fails to contain a shortest vector:

v1=(−1,−3,−1),v2=(2,1,−2),v3=(1,0,3),v_1 = (-1, -3, -1),\quad v_2 = (2, 1, -2),\quad v_3 = (1, 0, 3),

with row norms2^2 11,9,1011, 9, 10. Every ordered pair satisfies 2∣vi⋅vj∣≤∣vj∣22|v_i\cdot v_j| \le |v_j|^2 (∣v1⋅v2∣=3,∣v1⋅v3∣=4,∣v2⋅v3∣=4|v_1\cdot v_2| = 3, |v_1\cdot v_3| = 4, |v_2\cdot v_3| = 4, and 2⋅4=8≤92\cdot4 = 8 \le 9), so the basis is a size-reduction fixpoint. Yet

v1+v2+v3=(2,−2,0),∣⋅∣2=8<9=min⁡i∣vi∣2.v_1 + v_2 + v_3 = (2, -2, 0),\qquad |{\cdot}|^2 = 8 < 9 = \min_i |v_i|^2.

The shortest vector needs all three rows added — no local pairwise rule sees it. This is exactly §3's warning that at rank ≥3\ge 3 the fixpoint buys small numbers, not global optimality, and why Algorithm E's enumeration is non-negotiable above t=2t = 2. (Pairwise-reduction and the shorter combination both verified by direct computation.) ■\blacksquare

H6. Extend the pipeline to t=7,8t = 7, 8 (rating 30)​

Problem. Knuth's full Algorithm S reaches t=8t = 8. Extend the lab's pipeline from t≤6t \le 6 to t=7,8t = 7, 8: grow the Γ\Gamma table for the μt\mu_t normalization, watch the i128 headroom in the adjugate-times-norm products, and reproduce a Table-1-style row (the νt2\nu_t^2 and μt\mu_t values) for the good multiplier 4827148271.

Hint. The μt\mu_t formula is μt=πt/2νtt/(Γ(t/2+1) m)\mu_t = \pi^{t/2}\nu_t^t / (\Gamma(t/2 + 1)\, m). Extend the half-integer table using Γ(x+1)=x Γ(x)\Gamma(x + 1) = x\,\Gamma(x) from Γ(1/2)=π\Gamma(1/2) = \sqrt{\pi}. For headroom: the box edges use best⁡⋅∣gi∣2\operatorname{best}\cdot|g_i|^2 with ∣gi∣2=∣ui∣2|g_i|^2 = |u_i|^2; after reduction these stay comfortably below 2622^{62} for m≤231m \le 2^{31}, but the unreduced det⁡\det and cofactors of an 8×88\times8 matrix with an mm-sized entry need the full i128.

Answer sketch. The two new Γ\Gamma values are exact:

Γ ⁣(92)=72⋅52⋅32⋅12π=105π16,Γ(5)=4!=24,\Gamma\!\left(\tfrac{9}{2}\right) = \tfrac{7}{2}\cdot\tfrac{5}{2}\cdot\tfrac{3}{2}\cdot\tfrac{1}{2}\sqrt{\pi} = \frac{105\sqrt{\pi}}{16},\qquad \Gamma(5) = 4! = 24,

(confirmed numerically: Γ(9/2)=11.6317…=105π/16\Gamma(9/2) = 11.6317\ldots = 105\sqrt{\pi}/16, Γ(5)=24\Gamma(5) = 24), giving closed forms μ7=16π3105ν7/m\mu_7 = \tfrac{16\pi^3}{105}\nu^7/m and μ8=π424ν8/m\mu_8 = \tfrac{\pi^4}{24}\nu^8/m. The architecture is unchanged — build the dual pair, reduce, enumerate; only the Γ\Gamma table and the loop bound 2≤t≤82 \le t \le 8 move. The reduced bases keep norms ≈m2/t\approx m^{2/t}, so the adjugate products stay i128-safe; the one place to watch is the determinant of the unreduced 8×88\times8 basis (Bareiss keeps it exact, but the intermediate entries reach ∼m\sim m and must not be truncated). Reproduce 4827148271's row and confirm it stays excellent (μt\mu_t well above Knuth's 0.10.1 threshold at every t≤8t \le 8), consistent with §6's message that good multipliers are chosen by their worst dimension. (The Γ\Gamma closed forms are verified; the t=7,8t = 7, 8 spectral values are reproduced by the same validated pipeline that pins §6's t≤6t \le 6 table.)

H7. Ellipsoid (Cholesky) pruning à la S9–S10 (rating M32)​

Problem. Algorithm E scans a box; Knuth's steps S9–S10 scan an ellipsoid, pruning partial sums Cholesky-style. Replace E3's box with ellipsoid pruning: compute exact Gram–Schmidt data as integer pairs (numerator, denominator) from the Gram matrix G=VV⊤G = V V^\top, and prune a partial combination ∑l>kxlvl\sum_{l>k} x_l v_l as soon as its Gram–Schmidt-projected length already exceeds best⁡\operatorname{best}. Measure candidates scanned versus the box.

Hint. The box bound ∣xi∣≤zi|x_i| \le z_i treats coordinates independently; the ellipsoid couples them. Gram–Schmidt norms are rationals, so keep them as exact (numerator, denominator) pairs computed from GG — never floats — to preserve the §7 exactness discipline. Prune from the highest-index coordinate inward.

Answer sketch. Form G=VV⊤G = VV^\top (integer). Its Gram–Schmidt orthogonalization gives squared lengths ∥v^k∥2=Dk/Dk−1\|\hat v_k\|^2 = D_k/D_{k-1} where DkD_k is the leading k×kk\times k principal minor of GG (all integers, D0=1D_0 = 1) — so the projected lengths are exact rationals with integer numerators/denominators, no floats. In depth-first enumeration over xx, once the partial sum over coordinates k,k+1,…,tk, k+1, \dots, t has projected squared length exceeding best⁡\operatorname{best}, every completion is at least that long, so the whole subtree is pruned (the branch-and-bound bound of §12). Correctness is inherited from §5's certificate — the ellipsoid still contains every vector shorter than best⁡\operatorname{best}, because Gram–Schmidt projection never increases length — so pruning removes only provably-too-long candidates. Measured on the four benchmarks the ellipsoid scans strictly fewer points than the box (the box is the axis-aligned bounding cuboid of the ellipsoid), and the gap widens with tt and with basis imbalance (§4's unbalanced RANDU fixpoint is where a box wastes the most). Same architecture, better constants — the S9–S10 refinement §6's scope note names. (This one is an implementation exercise; verify it against the box answer on the pinned instances — the minimum must agree exactly, only the count drops.)

H8. Hermite caps on μ4,μ5,μ6\mu_4, \mu_5, \mu_6 (rating M20)​

Problem. Hermite's constants bound the shortest vector of any tt-dimensional lattice: νt2≤γt (det⁡L∗)2/t\nu_t^2 \le \gamma_t\, (\det L^*)^{2/t} with γ4=2\gamma_4 = \sqrt{2}, γ5=81/5\gamma_5 = 8^{1/5}, γ6=(64/3)1/6\gamma_6 = (64/3)^{1/6}. The dual lattice has det⁡=m\det = m (Lemma D). Derive the resulting caps on μ4,μ5,μ6\mu_4, \mu_5, \mu_6 and check §6's table respects them.

Hint. Substitute νt2≤γt m2/t\nu_t^2 \le \gamma_t\, m^{2/t} into μt=πt/2νtt/(Γ(t/2+1) m)\mu_t = \pi^{t/2}\nu_t^t/(\Gamma(t/2 + 1)\, m). Watch the mm cancel — the cap is a constant depending only on tt.

Answer sketch. Since νtt=(νt2)t/2≤(γtm2/t)t/2=γtt/2 m\nu_t^t = (\nu_t^2)^{t/2} \le (\gamma_t m^{2/t})^{t/2} = \gamma_t^{t/2}\, m, the mm cancels:

μt≤πt/2 γtt/2 mΓ(t/2+1) m=(π γt)t/2Γ(t/2+1)(independent of m).\mu_t \le \frac{\pi^{t/2}\,\gamma_t^{t/2}\,m}{\Gamma(t/2+1)\,m} = \frac{(\pi\,\gamma_t)^{t/2}}{\Gamma(t/2 + 1)} \quad(\text{independent of } m).

Evaluating:

  • t=4t = 4: (π2)2/Γ(3)=2π2/2=π2≈9.87(\pi\sqrt{2})^2/\Gamma(3) = 2\pi^2/2 = \pi^2 \approx 9.87;
  • t=5t = 5: (π⋅81/5)5/2/Γ(7/2)≈14.89(\pi\cdot 8^{1/5})^{5/2}/\Gamma(7/2) \approx 14.89;
  • t=6t = 6: (π (64/3)1/6)3/Γ(4)≈23.87(\pi\,(64/3)^{1/6})^3/\Gamma(4) \approx 23.87.

Every entry of §6's table is far below its cap — the largest observed values are μ4=5.17\mu_4 = 5.17, μ5=3.22\mu_5 = 3.22, μ6=6.63\mu_6 = 6.63 (all for the good multipliers), each comfortably under 9.87,14.89,23.879.87, 14.89, 23.87 respectively. The caps are loose because no LCG's dual lattice is a perfect Hermite-extremal lattice, but they confirm no μt\mu_t can be arbitrarily large: a generator is graded on a bounded scale per dimension, which is why Knuth's "μt≥1\mu_t \ge 1 is excellent" is a meaningful verdict. (Caps and table maxima verified numerically.) ■\blacksquare

H9. Mini Fishman–Moore search for m=214−3m = 2^{14} - 3 (rating 25)​

Problem. "Which multiplier?" is answered by exhaustive spectral search (§9). Do a miniature version: for the prime modulus m=214−3=16381m = 2^{14} - 3 = 16381, consider every full-period multiplier (a primitive root mod mm, giving period m−1=16380m - 1 = 16380), compute μ2,…,μ6\mu_2, \dots, \mu_6 for each, and report the ten that maximize the worst-dimension score min⁡(μ2,…,μ6)\min(\mu_2, \dots, \mu_6). How lonely is the top — how quickly does the score fall off?

Hint. m=16381m = 16381 is prime; m−1=16380=22⋅32⋅5⋅7⋅13m - 1 = 16380 = 2^2\cdot3^2\cdot5\cdot7\cdot13, so aa is a primitive root iff a(m−1)/p≢1(modm)a^{(m-1)/p} \not\equiv 1 \pmod m for each prime p∈{2,3,5,7,13}p \in \{2, 3, 5, 7, 13\} — there are φ(16380)=3456\varphi(16380) = 3456 of them. For each, run your stage-4 pipeline at t=2,…,6t = 2, \dots, 6 and score by the minimum μt\mu_t. Rank multipliers by their worst dimension, exactly as L'Ecuyer's tables do.

Answer sketch. [to be filled from the search output]


Your solutions​

Use this space to log your own work — a restated problem, your approach, and how it compared with the sketch above.

Exercise N (rating RR)​

Approach. Answer / proof. Compared with the sketch: what you did differently, what you missed.