OFFSET
0,1
LINKS
M. Diepenbroek, M. Maus, A. Stoll, Pattern Avoidance in Reverse Double Lists, Preprint 2015. See Theorem 3.14.
Index entries for linear recurrences with constant coefficients, signature (4,-6,4,-1).
FORMULA
O.g.f.: (4 - 14*x + 18*x^2 - 6*x^3)/(1-x)^4. - Vincenzo Librandi, Apr 08 2016
E.g.f.: (12 - 6*x + 3*x^2 + x^3)*exp(x)/3. - Bruno Berselli, Apr 08 2016
a(n) = 4*a(n-1) - 6*a(n-2) + 4*a(n-3) - a(n-4) for n>3. - Vincenzo Librandi, Apr 08 2016
a(n) = 2*A105163(n) for n>0. - Bruno Berselli, Apr 08 2016
MATHEMATICA
Table[n^3 / 3 - 7 n / 3 + 4, {n, 0, 50}] (* Vincenzo Librandi, Apr 08 2016 *)
PROG
(Magma) [n^3/3-7*n/3+4: n in [0..50]]; // Vincenzo Librandi, Apr 08 2016
(PARI) vector(50, n, n--; n^3/3-7*n/3+4) \\ Bruno Berselli, Apr 08 2016
(PARI) x='x+O('x^99); Vec((4-14*x+18*x^2-6*x^3)/(1-x)^4) \\ Altug Alkan, Apr 08 2016
(Sage) [n^3/3-7*n/3+4 for n in [0..50]] # Bruno Berselli, Apr 08 2016
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, Apr 06 2016
STATUS
approved