OFFSET
0,7
COMMENTS
This sequence is similar to Somos-5 (A006721).
For the elliptic curve "58a1" and point (0, 1) the multiple n*(0, 1) = ((3-(-1)^n)/2 * a(n+1)*a(n-1) / a(n)^2, a(n+2)^2 * a(n-4) / a(n)^3). - Michael Somos, Feb 23 2020
LINKS
FORMULA
a(n) = -(-1)^n * a(-n) for all n in Z.
0 = a(n)*a(n+5) + a(n+1)*a(n+4) - a(n+2)*a(n+3) for all n in Z.
0 = a(n)*a(n+7) - a(n+1)*a(n+6) - 2*a(n+2)*a(n+5) for all n in Z.
0 = a(n)*a(n+4) + a(n+1)*a(n+3) - a(n+2)*a(n+2) for all even n in Z.
0 = a(n)*a(n+4) + 2*a(n+1)*a(n+3) - a(n+2)*a(n+2) for all odd n in Z.
abs(a(n)) = A242108(n) for all n in Z.
a(2*n) = A178622(n) for all n in Z. - Michael Somos, Aug 21 2014
a(2*n-3) = A328380(n) for all n in Z. - Michael Somos, Feb 23 2020
EXAMPLE
a(9) = -5 and the point multiple 9*(0, 1) = (-14/(-5)^2, -169/(-5)^3).
MATHEMATICA
Join[{0}, RecurrenceTable[{a[n] == (-a[n-1]*a[n-4] + a[n-2]*a[n-3])/a[n-5], a[0] == 0, a[1] == 1, a[2] == 1, a[3] == 1, a[4] == 1, a[5] == -1}, a, {n, 0, 50}]] (* G. C. Greubel, Aug 05 2018 *)
PROG
(PARI) {a(n) = my(s=1, v); if( n<0, s=-1; n=-n); s^(n+1) * if( n, v = vector(n, k, 1); if( n<6, (-1)^(n>4), v[5] = -1; for(k=6, n, v[k] = (-v[k-1] * v[k-4] + v[k-2] * v[k-3]) / v[k-5]); v[n]))};
(PARI) {a(n) = sign(n) * subst(elldivpol(ellinit([1, -1, 0, -1, 1]), abs(n)), x, 0) / (if(n%2, 1, 2) * (-1)^((n-1)\2) * 2^(n^2\4))}; /* Michael Somos, Feb 23 2020 */
(PARI) {a(n) = my(E=ellinit([1, -1, 0, -1, 1]), z=ellpointtoz(E, [0, 1])); (-1)^(n\2) * round(ellsigma(E, n*z) / (ellsigma(E, z)^n^2 * 2^(n^2\4))) }; /* Michael Somos, Feb 25 2020 */
(Python)
from gmpy2 import divexact
A242107 = [0, 1, 1, 1, 1, -1]
for n in range(6, 321):
....A242107.append(divexact(-A242107[n-1]*A242107[n-4]+A242107[n-2]*A242107[n-3], A242107[n-5])) # Chai Wah Wu, Aug 15 2014
(Magma) I:=[1, 1, 1, 1, -1]; [0] cat [n le 5 select I[n] else (-Self(n-1)* Self(n-4) + Self(n-2)*Self(n-3))/Self(n-5): n in [1..30]]; // G. C. Greubel, Aug 05 2018
CROSSREFS
KEYWORD
sign
AUTHOR
Michael Somos, Aug 15 2014
EXTENSIONS
Definition edited by Michael Somos, Feb 23 2020
STATUS
approved