OFFSET
0,3
COMMENTS
Recurrence 1 is derived in A359884, "3d-tilings of a 2 X 2 X n box" as a special case of a more general tiling problem: III, example 6.
LINKS
Paolo Xausa, Table of n, a(n) for n = 0..1000
Gerhard Kirchner, Maxima code
Index entries for linear recurrences with constant coefficients, signature (2,1,58,72,32,-128).
FORMULA
G.f.: (1 - x - 16*x^3) / (1 - 2*x - x^2 - 58*x^3 - 72*x^4 - 32*x^5 + 128*x^6).
Recurrence 1:
a(n) = a(n-1) + 3*c(n-2) + 2*a(n-2) + 4*c(n-3) + 8*a(n-3),
c(n) = 12*a(n-1) + c(n-1) + 16*a(n-2) + 16*c(n-3),
with a(n),c(n) <= 0 for n <= 0 except for a(0)=1.
Recurrence 2:
a(n) = 2*a(n-1) + a(n-2) + 58*a(n-3) + 72*a(n-4) + 32*a(n-5) - 128*a(n-6) for n >= 6.
For n < 6, recurrence 1 can be used.
EXAMPLE
MATHEMATICA
LinearRecurrence[{2, 1, 58, 72, 32, -128}, {1, 1, 3, 49, 231, 789}, 30] (* Paolo Xausa, Jun 24 2024 *)
PROG
(Maxima) /* See link "Maxima code". */
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Gerhard Kirchner, Jan 20 2023
STATUS
approved
