The nth term of a sequence is (n + 1)(3n + 2). What is the value of a_1 + a_2 + ... + a_{100}?
sumfor(n, 1, 100, (3*n^2 +5*n +2))==1,040,500