已知等差数列{an},a1=4,又a1,a7,a10成等比数列,若前几项和sn=11,求n