Find the structure of the positive integer solutions to x squared plus y squared plus one equals three x y. This original UKMT olympiad extension uses descent: transform a solution into a smaller positive one until reaching a base case, then reverse the transformation. A short table of solutions can suggest a pattern, but it does not alone prove that no other solutions exist.
Need help choosing a next step? Scan the contact QR code below or contact Hanlin on WeChat. Send UKMT-S2-1130 and tell us your school year and question.
Order the variables and inspect equal values
The equation is symmetric, so suppose one is at most x and x is at most y. If x equals y, substitution gives x squared equals one, so the positive equal solution is one, one. If x equals one, the equation becomes y squared minus three y plus two equals zero, yielding y equal to one or two.
Regard the equation as quadratic in the larger variable
With x fixed, y is a root of t squared minus three x t plus x squared plus one. The other root is y prime equal to three x minus y. Since x and y are integers, this root is an integer. Their product is x squared plus one, so y prime is positive because y is positive.
Prove genuine decrease rather than just a new solution
Suppose x is at least two. Evaluating the quadratic at t equals x gives one minus x squared, which is negative. A monic quadratic is negative strictly between its two real roots. Because y is at least x, the other root must satisfy zero less than y prime less than x less than y. After reordering, the new positive solution has a strictly smaller largest coordinate.
Terminate the descent at a verified base case
Repeatedly replacing the larger coordinate by the other root cannot create an endless decreasing sequence of positive largest coordinates. Eventually x equals one, giving one, one or one, two. This proves every original positive solution can be brought to the base cases. Positivity and strict decrease are both necessary; merely showing the equation is preserved would not establish completeness.
Reverse the step to generate the solutions
Starting from one, one, repeatedly replace an ordered pair a, b by b, three b minus a. The first pairs are one, one; one, two; two, five; five, thirteen; and thirteen, thirty-four. Substitution verifies that the transformation preserves the equation. Reversing the forced descent shows that these successive pairs, together with swapped coordinates, give all positive solutions.
Distinguish proof of generation from numerical evidence
The recurrence creates infinitely many increasingly large solutions, but its completeness comes from the descent argument. A computer search over a bounded square can check early pairs and arithmetic without proving the unbounded claim. Present the invariant equation, positive second root, strict decrease and base cases explicitly so that the classification does not rest on a plausible-looking sequence.
Continue reading: UKMT Number Proof: Three Consecutive Cubes Always Sum to a Multiple of Nine.
Contact Hanlin
Planning a first attempt or reviewing a topic you find difficult? Scan the QR code and send UKMT-S2-1130. Include your school year, country or competition region, experience and the question you want to discuss.

On your phone, use the button or save the QR image and scan it within WeChat.
Official information and further reading: Source 1
