dn=|x1+x2|/2
x1+x2=2(10-3n)
dn=|10-3n|
n=4 dn=3n-10
s1=7,s2=11,s3=12
n>=4时sn=3n(n+1)/2-10n+4
=3n^2/2-17n/2+4