OFFSET
0,2
COMMENTS
a(2*n+1) = a(2*n) + A157725(n); a(2*n) = a(2*n-1) - 2 for n > 0. - Reinhard Zumkeller, Jul 30 2013
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 0..10000
Index entries for linear recurrences with constant coefficients, signature (-1,1,1,1,1).
FORMULA
G.f. -x*(2+x^2+2*x^3+2*x) / ( (1+x)*(x^4+x^2-1) ). - R. J. Mathar, Jul 15 2013
a(n) + a(n+1) = A096748(n+2). - R. J. Mathar, Jul 15 2013
MATHEMATICA
LinearRecurrence[{-1, 1, 1, 1, 1}, {0, 2, 0, 3, 1}, 60] (* Harvey P. Dale, Sep 12 2018 *)
PROG
(Haskell)
import Data.List (transpose)
a226649 n = a226649_list !! n
a226649_list = concat $ transpose [a000071_list, drop 2 a001611_list]
-- Reinhard Zumkeller, Jul 30 2013
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
V. T. Jayabalaji, Jun 14 2013
STATUS
approved