设数列An的前n项和为Sn,已知a(1)+2a(2)+3a(3)+…+na(n)=(n-1)Sn+2n(n为正整数).求