On simplifying we get the quadratic equations as
(ntimes⏟x2+x2+...+x2)+[1+3+5+...+(2n−1)]x+[1.2+2.3+...+(n−1)n]=10n
nx2+n2x+3n(n2−1)=10n
x2+nx+3n2−31=0
Let, α,β are the roots of the above equation
∴α+β=−n,αβ=3n2−31
Now, the difference of roots∣α−β∣=1
⇒(α−β)2=1
⇒(α+β)2−4αβ=1
⇒n2−34(n2−31)=1
⇒n2=121
⇒n=11