If ak is the coefficient of xk in the expansion of (1+x+x2)n for k=0,1,2, …, 2n, then a1+2a2+3a3+…+2na2n=