A1>0
S15=S20
Sn=na1+[n(n-1)/2]d
15a1+15*7d=20a1+10*19*d
5a1+85d=0
a1+17d=0
又an=a1+(n-1)d
当n-1=17时(即n=18)an=0
则当n=17或n=18时,前N项和有最大值
A1>0
S15=S20
Sn=na1+[n(n-1)/2]d
15a1+15*7d=20a1+10*19*d
5a1+85d=0
a1+17d=0
又an=a1+(n-1)d
当n-1=17时(即n=18)an=0
则当n=17或n=18时,前N项和有最大值