OFFSET
0,3
LINKS
Index entries for linear recurrences with constant coefficients, signature (3,-1,-3,1,1).
FORMULA
O.g.f.: x*(-1 - 4*x + x^2)/((-1 + x)*(-1 + x + x^2)^2).
a(n) = n*L(n+2) - L(n+3) + 4.
a(n) = 3*a(n-1) - a(n-2) - 3*a(n-3) + a(n-4) + a(n-5). - Wesley Ivan Hurt, Aug 19 2022
MATHEMATICA
l[n_] := l[n] = l[n - 1] + l[n - 2]; l[0] = 2; l[1] = 1; Table[Sum[k l[k], {k, 0, n}], {n, 0, 10}]
With[{nn=40}, Accumulate[Times@@@Thread[{LucasL[Range[0, nn]], Range[ 0, nn]}]]] (* Harvey P. Dale, Aug 15 2015 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Mario Catalani (mario.catalani(AT)unito.it), Jul 20 2004
STATUS
approved