OFFSET
1,2
LINKS
Index entries for linear recurrences with constant coefficients, signature (3,-2,-1,1).
FORMULA
a(n) = L(5)*(F(n+1)-1) + L(4)*F(n) - L(3)*n - 2*n, F(n) = A000045(n).
a(n) = A033811(n) - 2n. - N. J. A. Sloane, Jun 12 2004
a(n) = 3*a(n-1)-2*a(n-2)-a(n-3)+a(n-4). G.f.: -x*(x+1)*(2*x+1) / ((x-1)^2*(x^2+x-1)). - Colin Barker, May 14 2014
PROG
(PARI) Vec(-x*(x+1)*(2*x+1)/((x-1)^2*(x^2+x-1)) + O(x^100)) \\ Colin Barker, May 14 2014
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Clark Kimberling, Jun 14 1998
EXTENSIONS
More terms from Colin Barker, May 14 2014
STATUS
approved