已知数列{an}是等差数列,其前n项和为Sn,a3=7,S4=24