OFFSET
0,2
COMMENTS
Row sums of triangle A141396.
LINKS
Index entries for linear recurrences with constant coefficients, signature (4,-2,-4,3)
FORMULA
G.f.: ( -1-x-x^2 ) / ( (1+x)*(3*x-1)*(x-1)^2 ). a(n) = (-1)^n/16 -3*n/4 -3/2 +13*3^(n+1)/16. - R. J. Mathar, Feb 16 2011
EXAMPLE
MATHEMATICA
LinearRecurrence[{4, -2, -4, 3}, {1, 5, 19, 62}, 50] (* Harvey P. Dale, Jul 07 2024 *)
PROG
(PARI) Vec((-1-x-x^2) / ((1+x)*(3*x-1)*(x-1)^2) + O(x^40)) \\ Michel Marcus, Jan 21 2015
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Gary W. Adamson, Jun 29 2008
STATUS
approved