(1) Let the general term formula of arithmetic sequence {an} be 3n-2, and find the sum formula of its first n terms

(1) Let the general term formula of arithmetic sequence {an} be 3n-2, and find the sum formula of its first n terms

an=3n-2
Sum formula Sn = n * (a1 + an) / 2
a1=1
Sn=n(a1+an)/2=n(1+3n-2)/2=n(3n-1)/2