假设为A1.A40 ,
(A1-0.5)^2+.+(A40-0.5)^2=(A1^2+.A40^2)+0.5*0.5*40-2*0.5(A1+.+A40)
=56+0.5*0.5*40+2*0.5*(40*0.5)