n=a1+2a2++nan,