The nth term of that sequence could be:
(2/3)n^3 - 2n^2 + (16/3)n + 3
Start over
Written by Jeff Aaron