OFFSET
1,2
LINKS
Lara Pudwell, Systematic Studies in Pattern Avoidance, 2005.
Index entries for linear recurrences with constant coefficients, signature (3,-3,1).
FORMULA
G.f.: A(x) = -{x(2x^4+2x^3+2x^2-x+1)}/{(x-1)^3}
For n >= 3, a(n) = 3n^2 - 14n + 20. - Franklin T. Adams-Watters, Sep 16 2006
MAPLE
A116720 := proc(n) coeftayl(-x*(2*x^4+2*x^3+2*x^2-x+1)/(x-1)^3, x=0, n) ; end: seq(A116720(n), n=1..60) ; # R. J. Mathar, Jan 23 2008
MATHEMATICA
f[n_]:=n+(n+1)*(n+2)+(n+3)*(n+4)+(n+5)*(n+6); lst={1, 2}; Do[AppendTo[lst, f[n]], {n, -3, 5!}]; lst [Vladimir Joseph Stephan Orlovsky, Oct 08 2009]
LinearRecurrence[{3, -3, 1}, {1, 2, 5, 12, 25}, 50] (* Harvey P. Dale, May 06 2017 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Lara Pudwell, Feb 26 2006
EXTENSIONS
More terms from R. J. Mathar, Jan 23 2008
STATUS
approved