数列{an}中,a1=2,且(n+1)an+1=nan,则通项an=?