OFFSET
0,2
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..148
FORMULA
a(n) = 2^n*A006720(n).
a(n) = (a(n-1)*a(n-3) + a(n-2)^2)/a(n-4). - G. C. Greubel, Sep 18 2018
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] == 4, a[3] == 8}, a, {n, 0, 30}] (* G. C. Greubel, Sep 18 2018 *)
PROG
(PARI) a(n)=if(n<4, [1, 2, 4, 8][n+1], (a(n-1)*a(n-3)+a(n-2)^2)/a(n-4))
(Magma) I:=[1, 2, 4, 8]; [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
nonn
AUTHOR
Jaume Oliver Lafont, Sep 29 2009
EXTENSIONS
"frac" keyword removed by Jaume Oliver Lafont, Oct 13 2009
STATUS
approved