等差数列an的前n项和为sn,a1=1+√2 ,s3=9+3√2求数列{an}的通项an与前n项和Sn