OFFSET
0,3
LINKS
Index entries for linear recurrences with constant coefficients, signature (0,7,0,-12).
FORMULA
a(n) = 7*a(n-2) - 12*a(n-4) for n >= 4.
From Stefano Spezia, Sep 06 2024: (Start)
G.f.: (1 + x - 4*x^2 - 3*x^3)/((1 - 2*x)*(1 + 2*x)*(1 - 3*x^2)).
a(n) = (4*3^(n/2)*A059841(n) - (-2)^n + 2^n)/4.
E.g.f.: cosh(sqrt(3)*x) + cosh(x)*sinh(x). (End)
MATHEMATICA
seq[len_] := Module[{m = Ceiling[len/2] - 1}, Riffle @@ Map[#^Range[0, m] &, {3, 4}]]; seq[36] (* Amiram Eldar, Sep 05 2024 *)
PROG
(Python)
def A375966(n): return 1<<(n^1) if n&1 else 3**(n>>1) # Chai Wah Wu, Sep 24 2024
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Paul Curtz, Sep 04 2024
STATUS
approved