已知数列an满足a1=1/2,an+1=an+1/n²+n,求an