OFFSET
0,7
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (-1,0,1,2,3,5,7,5,3,2,1,0,-1,-1).
FORMULA
G.f.: 1/(1 + x - x^3 - 2*x^4 - 3*x^5 - 5*x^6 - 7*x^7 - 5*x^8 - 3*x^9 - 2*x^10 - x^11 + x^13 + x^14).
G.f.: -1/(x^7*f(x)*f(1/x)), where f(x) = -1 + x^2 + x^3 + x^4 + x^5 + x^6 + x^7. - G. C. Greubel, Oct 24 2022
MATHEMATICA
f[x_]= -1 +x^2 +x^3 +x^4 +x^5 +x^6 +x^7;
CoefficientList[Series[-1/(x^7*f[x]*f[1/x]), {x, 0, 50}], x] (* G. C. Greubel, Oct 24 2022 *)
PROG
(PARI) Vec(1/(1 +x -x^3 -2*x^4 -3*x^5 -5*x^6 -7*x^7 -5*x^8 -3*x^9 -2*x^10 -x^11 + x^13 +x^14) + O(x^40)) \\ Jinyuan Wang, Mar 10 2020
(Magma) R<x>:=PowerSeriesRing(Integers(), 50); Coefficients(R!( 1/((1-x^2-x^3-x^4-x^5-x^6-x^7)*(1+x+x^2+x^3+x^4+x^5-x^7)) )); // G. C. Greubel, Oct 24 2022
(SageMath)
def A147605_list(prec):
P.<x> = PowerSeriesRing(ZZ, prec)
return P( 1/((1-x^2-x^3-x^4-x^5-x^6-x^7)*(1+x+x^2+x^3+x^4+x^5-x^7)) ).list()
A147605_list(50) # G. C. Greubel, Oct 24 2022
CROSSREFS
KEYWORD
sign,easy
AUTHOR
Roger L. Bagula, Nov 08 2008
EXTENSIONS
Definition corrected by N. J. A. Sloane, Nov 09 2008
STATUS
approved