OFFSET
1,4
FORMULA
a(n) = (a(n-3) + a(n-1))*(a(n-2) + a(n-3)) for n>=4; a(1)=a(2)=a(3)=1.
MATHEMATICA
RecurrenceTable[{a[1] == a[2] == a[3] == 1, a[n] == (a[n - 3] + a[n - 1]) (a[n - 2] + a[n - 3])}, a, {n, 15}] (* Bruno Berselli, Oct 09 2015 *)
PROG
(PARI) a(n) = if(n<4, 1, (a(n-3)+a(n-1))*(a(n-2)+a(n-3)));
vector(15, n, a(n)) \\ Altug Alkan, Oct 08 2015
(Magma) [n le 3 select 1 else (Self(n-3)+ Self(n-1))*(Self(n-2)+Self(n-3)): n in [1..15]]; // Vincenzo Librandi, Oct 09 2015
CROSSREFS
KEYWORD
nonn
AUTHOR
Gianmarco Giordano, Oct 08 2015
EXTENSIONS
More terms from Altug Alkan, Oct 08 2015
STATUS
approved