Hacker News new | ask | show | jobs
by Anon84 2390 days ago
It's phrased in a funny way, but this: ""two numbers that multiply to C and sum to B must have an average of B/2, so they must be B/2 + z and B/2 - z" is pretty obvious.

If x+y=B then the average(x+y) = (x+y)/2 = B/2

B/2 is then the number in between x and y so you can represent x and y as B/2 + z and B/2 - z (where z is just half the distance between x and y, or |x-y|/2)