an=a1+(n-1)d=50-2(n-1)=52-2n
Sn=(a1+an)*n/2=(50+52-2n)*n/2=(102-2n)*n/2=(51-n)*n=0
n=0或n=51
因为n不等0,所以n=51