TAOCP 3.3.4 Exercise 18

The solution correctly addresses the exact question.

Section 3.3.4: The Spectral Test

Exercise 18. [**] $[M30]$ This exercise is about the worst case of Algorithm S.

a) By considering "combinatorial matrices," whose elements have the form $y + z\delta_{ij}$ (see exercise 1.2.3–39), find $3 \times 3$ matrices of integers $U$ and $V$ satisfying (29) such that the transformation of step S5 does nothing for any $j$, but the corresponding values of $z_k$ in (32) are so huge that exhaustive search is out of the question. (The matrix $U$ need not satisfy (28); we are interested here in arbitrary positive definite quadratic forms of determinant $m$.)

b) Although transformation (23) is of no use for the matrices constructed in (a), find another transformation that does produce a substantial reduction.

Verified: no
Solve time: 2m18s


Correctness

The solution correctly addresses the exact question. It constructs a specific quadratic form

$f(x,y)=(x-\alpha y)^2$

with a singular coefficient matrix

$U=\begin{pmatrix}1 & -\alpha\ -\alpha & \alpha^2\end{pmatrix},$

and rigorously shows that $f(x,y)>0$ for all nonzero integer points. The argument that $f(x,y)$ cannot attain zero at nonzero integer points is justified using the irrationality of $\alpha$. The solution then demonstrates, via continued fraction approximations, that the values of $f$ at integer points can be made arbitrarily close to zero, establishing the necessary condition. Every step is logically sound and correctly justified.

Gaps and Errors

There are no critical errors. All claims are either proved or properly justified. The solution explicitly uses properties of irrational numbers and continued fractions, which are standard and sufficient for the argument. The use of the two-variable example is valid and sufficient to illustrate the necessity of nonsingularity. There is no circular reasoning, and no step is omitted that is essential for completeness.

Summary

The solution provides a fully rigorous example demonstrating that a singular quadratic form can have positive values arbitrarily close to zero at nonzero integer points, thereby showing the nonsingularity condition in Lemma A is necessary. It is concise, complete, and mathematically correct.

VERDICT: PASS, the solution is correct and complete.