S4=14
a1+(a1+d)+(a1+2d)+(a1+3d)=14
2a1+3d=7 (1)
a1*a7=a3*a3
a1^2+6a1*d=a1^2+4d^2+4a1d
a1=2d代入(1)得到d=1,a1=2
an=n+1