数列{an}的前n项和sn=an2 +bn(a,b为常数),试证明{an}是等差数列,并求a1和d.