From the arithmetic: z=2y-x
From the geometric: z=y^2/x-2016
Setting the RHS of each equal and setting to zero gives
Which is a quadratic in y.
Solving for y gives y=x(+/-)x*sqrt(2016/x)
The (-) gives negative solutions
The (+) is easily searchable and the solutions are
Since X+Y+Z=3Y these are in order.
The discriminant is asymptotic to zero and the last solution has discriminant 1 so this is the complete list.
On reflection, this could have been done analytically.
Edited on April 29, 2016, 1:16 pm
Posted by Jer
on 2016-04-29 12:15:45