table [1 + 3n + 10n(n-1) - n(n-1)(n-2)], n=0..5