等差数列an的首项a1>0,前n项和为Sn,若S8=S16,则当n=多少时,Sn最大