OFFSET
1,1
LINKS
Andrew Howroyd, Table of n, a(n) for n = 1..500
Jessica Connor and Nick Ward, Celtic Knot Theory.
Index entries for linear recurrences with constant coefficients, signature (36,-216,-972,6561).
FORMULA
a(n) = (3^(3*n-2) + 3^((3*n-2)/2) + 3^(2*n-1) + 3^(3*n/2))/4 for even n > 2;
a(n) = (3^(3*n-2) + 3^((3*n-1)/2) + 3^(2*n-1) + 3^((3*n-1)/2))/4 for odd n.
a(n) = (3^(3*n-2) + 3^floor((3*n-1)/2) + 3^(2*n-1) + 3^floor(3*n/2))/4 for n <> 2.
G.f.: 3*x*(1 - 29*x + 180*x^2 - 108*x^3 - 4860*x^4 + 32805*x^5)/((1 - 9*x)*(1 - 27*x)*(1 - 27*x^2)). - Andrew Howroyd, Nov 15 2025
E.g.f.: (3*exp(9*x) + exp(27*x) + 12*cosh(3*sqrt(3)*x) + 6*sqrt(3)*sinh(3*sqrt(3)*x) - 16 - 270*x^2)/36. - Stefano Spezia, Nov 16 2025
PROG
(PARI) a(n) = if(n==2, 21, (3^(3*n-2) + 3^((3*n-1)\2) + 3^(2*n-1) + 3^(3*n\2))/4) \\ Andrew Howroyd, Jan 03 2022
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Philippe Gibone, Jan 02 2022
STATUS
approved
