OFFSET
0,3
LINKS
Lara Pudwell, Systematic Studies in Pattern Avoidance, 2005.
Index entries for linear recurrences with constant coefficients, signature (3,-3,1).
FORMULA
G.f.: -(2*x^5+2*x^4+x^3+2*x^2-2*x+1)/(x-1)^3.
For n >= 3, a(n) = 3*n^2 - 14*n + 20. - Franklin T. Adams-Watters, Sep 16 2006
MAPLE
A116720 := proc(n) coeftayl(-(2*x^5+2*x^4+x^3+2*x^2-2*x+1)/(x-1)^3, x=0, n) ; end: seq(A116720(n), n=0..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
a(0)=1 prepended by Alois P. Heinz, Aug 12 2025
STATUS
approved
