a_n = (29/6)n^3 - (53/2)n^2 + (140/3)n - 24