OFFSET
0,2
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (-2,-1,-1).
FORMULA
a(0) = 1, a(1) = -3, a(2) = 5, a(n) = -2*a(n-1) - a(n-2) - a(n-3) for n > 2. - Jinyuan Wang, Apr 07 2020
PROG
(PARI) Vec((1-x)/(1+2*x+x^2+x^3)+O(x^99)) \\ Charles R Greathouse IV, Sep 27 2012
(Haskell)
a078065 n = a078065_list !! n
a078065_list = 1 : zipWith (*) (cycle [-1, 1])
(zipWith (+) (map (* 2) a005251_list) (map (* 3) $ drop 2 a005251_list))
-- Reinhard Zumkeller, Jul 13 2015
CROSSREFS
KEYWORD
sign,easy
AUTHOR
N. J. A. Sloane, Nov 17 2002
STATUS
approved