数列{an}满足a1=0,a(n+1)=an+2n,求an通项公式