OFFSET
0,6
COMMENTS
First 5 terms are {0,0,0,1,1}; thereafter apply the recurrence. Note that 0^0=1.
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..15
R. Munafo, Accelerating Sequences
PROG
(Magma) I:=[0, 0, 0, 1, 1]; [n le 5 select I[n] else Self(n-1)+Self(n-2)*Self(n-3)+(Self(n-4))^Self(n-5): n in [1..14]]; // Vincenzo Librandi, Dec 18 2012
(Haskell)
import Data.List (zipWith5)
a171874 n = a171874_list !! n
a171874_list = [0, 0, 0, 1, 1] ++ zipWith5 (\z y x w v -> z + x*y + w^v)
(drop 4 a171874_list) (drop 3 a171874_list)
(drop 2 a171874_list) (tail a171874_list) a171874_list
-- Reinhard Zumkeller, Aug 14 2013
CROSSREFS
KEYWORD
nonn
AUTHOR
Robert Munafo, Jan 21 2010
STATUS
approved