OFFSET
0,1
LINKS
Index entries for linear recurrences with constant coefficients, signature (4,-6,4,-1).
FORMULA
a(n) - A177342(n-1) = (n-1)^2, with n>1. For n=6, a(6) - A177342(5) = 174 - 149 = 5^2. - Bruno Berselli, May 23 2010
a(n) = 4*a(n-1)-6*a(n-2)+4*a(n-3)-a(n-4). - Colin Barker, May 18 2014
G.f.: (15*x^3-18*x^2+15*x-4) / (x-1)^4. - Colin Barker, May 18 2014
a(n) = A059259(2*n,3), n>1. - Mathew Englander, May 17 2014
MATHEMATICA
LinearRecurrence[{4, -6, 4, -1}, {-4, -1, 2, 13}, 50] (* Harvey P. Dale, Apr 20 2015 *)
PROG
(PARI) a(n) = (1/3)*(2*n-3)*(2*n^2-3*n+4); \\ Michel Marcus, May 18 2014
CROSSREFS
KEYWORD
sign,easy
AUTHOR
Ilias.Kotsireas(AT)lip6.fr (Ilias Kotsireas)
STATUS
approved