sum (3n+1)*a[n],n=0...4