sum from 1 to 18 (3+7(n-1))