等差数列{an}的前n项和为Sn,公差d

a8+a9+a10+a11=2a9+2a10=0
a9+a10=0
dso
a9>0
a10sn=a1+a2.an
因为a10so当n取9的时候最大