OFFSET
0,3
COMMENTS
LINKS
Index entries for linear recurrences with constant coefficients, signature (0,5,0,-4).
FORMULA
a(n) = 2 * (4^floor(n/2) - 1) / 3 + n mod 2.
G.f.: ( -x*(-1-2*x+2*x^2) ) / ( (x-1)*(2*x+1)*(2*x-1)*(1+x) ). - R. J. Mathar, Feb 19 2015
MAPLE
A193652 := proc(n)
if type (n, 'even') then
A020988(n/2) ;
else
A007583(floor(n/2)) ;
end if;
end proc: # R. J. Mathar, Jul 20 2016
MATHEMATICA
LinearRecurrence[{0, 5, 0, -4}, {0, 1, 2, 3}, 35] (* Jean-François Alcover, Dec 16 2021 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Reinhard Zumkeller, Aug 08 2011
EXTENSIONS
Terms corrected by R. J. Mathar, Feb 19 2015
STATUS
approved