OFFSET
0,2
COMMENTS
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (8,8,8,8,8,8,-36).
FORMULA
G.f.: (t^7 + 2*t^6 + 2*t^5 + 2*t^4 + 2*t^3 + 2*t^2 + 2*t + 1)/(36*t^7 - 8*t^6 - 8*t^5 - 8*t^4 - 8*t^3 - 8*t^2 - 8*t + 1).
G.f.: (1+t)*(1-t^7)/(1 -9*t +44*t^7 -36*t^8). - G. C. Greubel, Jul 17 2021
MATHEMATICA
CoefficientList[Series[(1+t)*(1-t^7)/(1 -9*t +44*t^7 -36*t^8), {t, 0, 30}], t] (* or *)
coxG[{7, 36, -8, 30}] (* The coxG program is at A169452 *) (* G. C. Greubel, Jul 17 2021 *)
PROG
(Magma)
R<t>:=PowerSeriesRing(Integers(), 30);
Coefficients(R!( (1+t)*(1-t^7)/(1 -9*t +44*t^7 -36*t^8) )); // G. C. Greubel, Jul 17 2021
(SageMath)
def A168823_list(prec):
P.<t> = PowerSeriesRing(ZZ, prec)
return P( (1+t)*(1-t^7)/(1 -9*t +44*t^7 -36*t^8) ).list()
A168823_list(30) # G. C. Greubel, Jul 17 2021
(PARI) a(n)=if(n, ([0, 1, 0, 0, 0, 0, 0; 0, 0, 1, 0, 0, 0, 0; 0, 0, 0, 1, 0, 0, 0; 0, 0, 0, 0, 1, 0, 0; 0, 0, 0, 0, 0, 1, 0; 0, 0, 0, 0, 0, 0, 1; -36, 8, 8, 8, 8, 8, 8]^(n-1)*[10; 90; 810; 7290; 65610; 590490; 5314365])[1, 1], 1) \\ Charles R Greathouse IV, Jun 05 2026
CROSSREFS
KEYWORD
nonn,easy,changed
AUTHOR
John Cannon and N. J. A. Sloane, Dec 03 2009
STATUS
approved
