Since each term is a perfect square, each term should be individually zero.
If a1 / a2 ¹ b1 / b2 then there are 'n' solutions.
X1 = - b1 / a1 ; X2 = - b2 / a2 ; ......... ; Xn = - bn / an ;
If a1 / a2 = b1 / b2 , then there is only one solution
X = - b1 / a1 = - b2 / a2 = ............... = - bn / an