a3²=a1a7
(a1+2d)²=a1(a1+6d)
4d²=2a1d
各项不相等则d≠0
a1=2d
S4=14
a1+a4=a2+a3
a1+a4=a1+a1+3d=7
4d+3d=7
d=1,a1=2
所以an=n+1