OFFSET
0,3
LINKS
Index entries for linear recurrences with constant coefficients, signature (3,0,-5,1,2).
FORMULA
G.f.: -x*(x^2-x+1)/((x-1)*(2*x-1)*(x+1)*(x^2+x-1)). - Alois P. Heinz, Nov 05 2024
E.g.f.: 2*cosh(2*x) + sinh(x) + 2*sinh(2*x) - 2*exp(x/2)*(5*cosh(sqrt(5)*x/2) + 3*sqrt(5)*sinh(sqrt(5)*x/2))/5. - Stefano Spezia, Nov 06 2024
MATHEMATICA
LinearRecurrence[{3, 0, -5, 1, 2}, {0, 1, 2, 7, 16}, 34] (* Amiram Eldar, Nov 07 2024 *)
PROG
(Python)
from sympy import fibonacci
def A377728(n): return 1-(fibonacci(n+2)<<2)+(m:=(4<<n)+(1 if n&1 else -1))-m%3>>1 # Chai Wah Wu, Nov 09 2024
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Prabha Sivaramannair, Nov 05 2024
STATUS
approved