OFFSET
1,1
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..10000
Index entries for linear recurrences with constant coefficients, signature (3,-3,1).
FORMULA
a(n) = 56-72*n+24*n^2, n>2. a(n) = (2*n-2)^3-sum_{i=1..n-1} a(i). [From R. J. Mathar, Nov 01 2010]
For n>2, a(1)=56, a(2)=152, a(3)=296, a(n)=3*a(n-1)-3*a(n-2)+a(n-3) [From Harvey P. Dale, May 05 2011]
G.f.: 2*x*(22*x^2+x^4+1)/(1-x)^3. - R. J. Mathar, Aug 26 2011
a(n)=8*A003215(n-2) for n>2. - J. M. Bergot, Aug 21 2013
MATHEMATICA
Join[{2, 6}, Table[56-72n+24n^2, {n, 3, 42}]] (* or *) Join[{2, 6}, LinearRecurrence[{3, -3, 1}, {56, 152, 296}, 40]] (* Harvey P. Dale, May 05 2011 *)
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Giovanni Teofilatto, Oct 25 2010
EXTENSIONS
Corrected (replaced 2 and 4 by a 6 = 8-2) by R. J. Mathar, Nov 01 2010
STATUS
approved