OFFSET
0,3
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (0,10,0,-16).
FORMULA
G.f.: (1+x-4*x^2)/(1-10*x^2+16*x^4).
Limit_{n -> oo} A083332(n)/a(n) = 3.
From G. C. Greubel, Dec 27 2024: (Start)
a(n) = (1/3)*2^((n-3)/2)*( (1-(-1)^n)*(2^(n+1) - 1) + (1+(-1)^n)*sqrt(2)*(2^(n+1) + 1) ).
E.g.f.: (1/3)*(2*cosh(2*sqrt(2)*x) + cosh(sqrt(2)*x)) + (1/(3*sqrt(2)))*(2*sinh(2*sqrt(2)*x) - sinh(sqrt(2)*x)). (End)
MATHEMATICA
CoefficientList[Series[(1+x-4x^2)/(1-10x^2+16x^4), {x, 0, 30}], x]
LinearRecurrence[{0, 10, 0, -16}, {1, 1, 6, 10}, 30] (* Harvey P. Dale, Aug 04 2024 *)
PROG
(Magma) I:=[1, 1, 6, 10]; [n le 4 select I[n] else 10*Self(n-2) -16*Self(n-4): n in [1..41]]; // G. C. Greubel, Dec 27 2024
(SageMath)
def A083333(n): return 2^((n-1)/2)*( (n%2)*(2^(n+1) -1) + ((n+1)%2)*sqrt(2)*(2^(n+1) +1))/3
print([A083333(n) for n in range(41)]) # G. C. Greubel, Dec 27 2024
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Mario Catalani (mario.catalani(AT)unito.it), Apr 24 2003
STATUS
approved