设数列{an}是等差数列,a2=-6,a8=6,Sn是数列{an}的前n项和,则(  )