A332828 Expansion of (x + x^2 + x^6 - x^7)/(1 - x^2 + x^4 - x^6 + x^8) in powers of x.
0, 1, 1, 1, 1, 0, 1, -1, 1, -1, 0, -1, -1, -1, -1, 0, -1, 1, -1, 1, 0, 1, 1, 1, 1, 0, 1, -1, 1, -1, 0, -1, -1, -1, -1, 0, -1, 1, -1, 1, 0, 1, 1, 1, 1, 0, 1, -1, 1, -1, 0, -1, -1, -1, -1, 0, -1, 1, -1, 1, 0, 1, 1, 1, 1, 0, 1, -1, 1, -1, 0, -1, -1, -1, -1, 0, -1
Offset: 0
Examples
G.f. = x + x^2 + x^3 + x^4 + x^6 - x^7 + x^8 - x^9 - x^11 - x^12 + ...
Links
- LMFDB, Elliptic Curve with LMFDB label 11.a3 (Cremona label 11a3)
- Index entries for linear recurrences with constant coefficients, signature (0,1,0,-1,0,1,0,-1).
Programs
-
Mathematica
a[ n_] := {1, 1, 1, 1, 0, 1, -1, 1, -1, 0}[[Mod[n, 10, 1]]];
-
PARI
{a(n) = (-1)^(n\10) * [0, 1, 1, 1, 1, 0, 1, -1, 1, -1][n%10 + 1]};
-
PARI
{a(n) = my(E=ellinit([0, -1, 1, 0, 0]), z=ellpointtoz(E, [0, 0])); (-1)^(n\2) * round(ellsigma(E, n*z) / ellsigma(E, z)^n^2)};
Comments