已知数列an满足an-an-1=n-1,且a1=1,则an=