OFFSET
1,1
LINKS
Jessica Connor and Nick Ward, Celtic Knot Theory
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.
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
AUTHOR
Philippe Gibone, Jan 02 2022
STATUS
approved