Solution: Day 1, problem 3
Let be the quotient. We may suppose that is a minimal positive solution of the equation
(i.e. one with the smallest value of) for this value of . Without loss of generality, suppose that , and set . . If is positive, then this equation implies , and is a smaller positive solution of the equation of which was supposed to be the minimal solution. If is negative, then , a contradiction. Hence and .
Note: This solution is just the explicit result of applying reduction theory (specifically, Sätze 1 and 2 of Section 13 of my book on quadratic fields) to the quadratic form , which is the unique reduced quadratic form in its equivalence class.