Question 419106
the formula that i came up with is this:


a[n] = 6 + 6*n + (sum(4*(n-1)) from n = 0 to n = n)


it works like this:


a[0] = 6 + 0 + (-4) = 2
a[1] = 6 + 6 + (-4 + 0) = 8
a[2] = 6 + 12 + (-4 + 0 + 4) = 18
a[3] = 6 + 18 + (-4 + 0 + 4 + 8) = 32
a[4] = 6 + 24 + (-4 + 0 + 4 + 8 + 12) = 50


it works for all of the numbers listed.


n has to be greater than or equal to 0


when n = 0, 4 * (n-1) becomes 4 * (-1) = -4
when n = 1, 4 * (n-1) becomes 4 * (0) = 0
when n = 2, 4 * (n-1) becomes 4 * (1) = 4
when n = 3, 4 * (n-1) becomes 4 * (2) = 8
when n = 4, 4 * (n-1) becomes 4 * (3) = 12