已知等差数列{an}满足a2=3,Sn-Sn-3=51(n>3),Sn=100,则n的值为(  )