OFFSET
0,2
COMMENTS
Hankel transform of A174013.
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..150
FORMULA
a(n) = (a(n-1)*a(n-3) + a(n-2)^2)/a(n-4), n>3.
MATHEMATICA
RecurrenceTable[{a[n] == (a[n-1]*a[n-3] +a[n-2]^2)/a[n-4], a[0] == 1, a[1] == 2, a[2] == -3, a[3] == 1}, a, {n, 0, 150}] (* G. C. Greubel, Sep 18 2018 *)
nxt[{a_, b_, c_, d_}]:={b, c, d, (b*d+c^2)/a}; NestList[nxt, {1, 2, -3, 1}, 30][[All, 1]] (* Harvey P. Dale, Jun 21 2022 *)
PROG
(PARI) m=30; v=concat([1, 2, -3, 1], vector(m-4)); for(n=5, m, v[n] = ( v[n-1]*v[n-3] +v[n-2]^2)/v[n-4]); v \\ G. C. Greubel, Sep 18 2018
(Magma) I:=[1, 2, -3, 1]; [n le 4 select I[n] else (Self(n-1)*Self(n-3) + Self(n-2)^2)/Self(n-4): n in [1..30]]; // G. C. Greubel, Sep 18 2018
CROSSREFS
KEYWORD
easy,sign
AUTHOR
Paul Barry, Mar 05 2010
STATUS
approved