|
|
A247487
|
|
Expansion of (2 + x + x^2 + x^3 - x^4 - 2*x^5 - 4*x^6 - 8*x^7) / (1 - x^4 + 16*x^8) in powers of x.
|
|
4
|
|
|
2, 1, 1, 1, 1, -1, -3, -7, -31, -17, -19, -23, -47, -1, 29, 89, 449, 271, 333, 457, 1201, 287, -131, -967, -5983, -4049, -5459, -8279, -25199, -8641, -3363, 7193, 70529, 56143, 83981, 139657, 473713, 194399, 137789, 24569, -654751, -703889, -1205907, -2209943
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,1
|
|
LINKS
|
|
|
FORMULA
|
a(n) = a(-n) * 2^n = a(n-4) - 16*a(n-8) for all n in Z.
A247518(n) = a(n+1) * a(n) * a(n-1) * a(n-2) for all n in Z.
|
|
EXAMPLE
|
G.f. = 2 + x + x^2 + x^3 + x^4 - x^5 - 3*x^6 - 7*x^7 - 31*x^8 - 17*x^9 + ...
|
|
MAPLE
|
seq(coeff(series((2+x+x^2+x^3-x^4-2*x^5-4*x^6-8*x^7)/(1-x^4+16*x^8), x, n+1), x, n), n=0..50); # Muniru A Asiru, Aug 05 2018
|
|
MATHEMATICA
|
CoefficientList[Series[(2+x+x^2+x^3-x^4-2*x^5-4*x^6-8*x^7)/(1 -x^4 + 16*x^8), {x, 0, 60}], x]] (* G. C. Greubel, Aug 05 2018 *)
|
|
PROG
|
(PARI) {a(n) = if( n<0, n=-n; 2^-n, 1) * polcoeff( (2 + x + x^2 + x^3 - x^4 - 2*x^5 - 4*x^6 - 8*x^7) / (1 - x^4 + 16*x^8) + x * O(x^n), n)};
(Magma) m:=60; R<x>:=PowerSeriesRing(Integers(), m); Coefficients(R!((2+x+x^2+x^3-x^4-2*x^5-4*x^6-8*x^7)/(1-x^4+16*x^8))); // G. C. Greubel, Aug 05 2018
(GAP) a:=[2, 1, 1, 1, 1, -1, -3, -7];; for n in [9..50] do a[n]:=a[n-4]-16*a[n-8]; od; a; # Muniru A Asiru, Aug 05 2018
|
|
CROSSREFS
|
|
|
KEYWORD
|
sign,easy
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|