SUM(i=1 to n)(3i-4)