The system of equations
has n nonnegative (meaning both a and b are nonnegative) real solutions. Let these solutions be (a1,b1),(a2,b2),⋯(an,bn). The value of the sum
can be expressed in the form da+bc where gcd(a,b,d)=1 and c is squarefree. Find a+b+c+d.