login
A171422
A (4,-5) Somos-4 sequence.
3
1, -1, -9, -41, -241, -271, 27329, 651521, 18425809, 399122991, -24055184809, -3943757411849, -498726356978849, -74609317288333151, 2771780972000481601, 8459493968101503667649, 5139175203350482789079649
OFFSET
0,3
COMMENTS
Hankel transform of A143013.
LINKS
FORMULA
a(n) = (4*a(n-1)*a(n-3) - 5*a(n-2)^2)/a(n-4), n>=3.
MATHEMATICA
RecurrenceTable[{a[n] == (4*a[n-1]*a[n-3] -5*a[n-2]^2)/a[n-4], a[0] == 1, a[1] == -1, a[2] == -9, a[3] == -41}, a, {n, 0, 30}] (* G. C. Greubel, Sep 18 2018 *)
PROG
(PARI) m=30; v=concat([1, -1, -9, -41], vector(m-4)); for(n=5, m, v[n] = ( 4*v[n-1]*v[n-3] -5*v[n-2]^2)/v[n-4]); v \\ G. C. Greubel, Sep 18 2018
(Magma) I:=[1, -1, -9, -41]; [n le 4 select I[n] else (4*Self(n-1)*Self(n-3) -5*Self(n-2)^2)/Self(n-4): n in [1..30]]; // G. C. Greubel, Sep 18 2018
CROSSREFS
Sequence in context: A146239 A083085 A147283 * A129793 A304361 A146878
KEYWORD
easy,sign
AUTHOR
Paul Barry, Dec 08 2009
STATUS
approved