OFFSET
0,2
LINKS
FORMULA
From R. J. Mathar, Jan 13 2008: (Start)
O.g.f.: (2*x+1)*(x-1)/((2*x-1)*(x^2+1)).
a(n) = (4*2^n + (-1)^floor(n/2)*A010688(n))/5. (End)
MAPLE
A010688 := proc(n) if n mod 2 = 0 then 1; else 7; fi ; end:
seq(A133190(n), n=0..30) ; # R. J. Mathar, Jan 13 2008
MATHEMATICA
LinearRecurrence[{2, -1, 2}, {1, 3, 3}, 40] (* Harvey P. Dale, Jun 22 2022 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Paul Curtz, Dec 17 2007
STATUS
approved