OFFSET
0,2
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (-4,-6,-4,-1).
FORMULA
G.f.: (-1)*(1 + x^3 - x^4)/(1 + x)^4.
a(n) = -4*a(n-1) -6*a(n-2) -4*a(n-3) -a(n-4).
Limit_{n->oo} a(n+1)/a(n) = -1. [corrected by Stefano Spezia, Sep 08 2025]
E.g.f.: 1 - exp(-x)*(2*(1 - x) + x^2*(12 + x)/6). - Stefano Spezia, Sep 08 2025
MATHEMATICA
CoefficientList[Series[-(1+x^3-x^4)/(1+x)^4, {x, 0, 50}], x]
LinearRecurrence[{-4, -6, -4, -1}, {-1, 4, -10, 19, -30}, 50] (* Harvey P. Dale, Nov 21 2019 *)
PROG
(Magma)
A173248:= func< n | n eq 0 select -1 else (-1)^n*(n^3 -15*n^2 +2*n -12)/6 >;
[A173248(n): n in [0..50]]; // G. C. Greubel, Dec 01 2025
(SageMath)
def A173248(n): return (-1)^n*(n^3 -15*n^2 +2*n -12)/6 +int(n==0)
print([A173248(n) for n in range(51)]) # G. C. Greubel, Dec 01 2025
CROSSREFS
KEYWORD
sign,easy
AUTHOR
Roger L. Bagula, Feb 13 2010
EXTENSIONS
Definition simplified by the Assoc. Editors of the OEIS, Feb 21 2010
STATUS
approved
