Let m and n be the numbers of real roots of the quadratic equations x2−12x+[x]+31=0 and x2−5∣x+2∣−4=0 respectively, where [x] denotes the greatest integer ≤x. Then m2+mn+n2 is equal to \_\_\_\_\_\_\_\_\_\_.
Answer: 9
Solutions · 1
Official solution
First equation: writing {x}=x−[x], the equation gives {x}=x2−11x+31. For a valid fractional part, 0≤x2−11x+31<1, which gives x∈(5,6), so [x]=5.
Substituting [x]=5: x2−12x+36=0⟹x=6, but 6∈/(5,6) --- contradiction. So no solution: m=0.
Second equation: solving x2−5∣x+2∣−4=0 piecewise gives three real roots x=7,−2,−3: n=3.
m2+mn+n2=0+0+9=9.