在等差数列{an}中,a1=4 ,公差d=2。
求a40的值;
由题意知,an=a1+(n-1)d=-4+2(n-1),故 a40=-4+2(40-1)=74
若该数列的前 n 项和为 50,求 n 的值。
等差数列{an}的前 n 项和