OFFSET
0,3
COMMENTS
Define F(t, x) = (phi(x)^(-t) - (-phi(x))^t) / (2*phi(x) - x) and L(t, x) = (phi(x)^(-t) + (-phi(x))^t), where phi(x) = (x + sqrt(x^2 + 4))/2. On this page and in A396651, we examine LF(t, x) = (1/2) * L(t, x) + (7/2)*x*F(t, x). In expanded form this leads to a generalized Binet-type representation:
LF(t, x) = ((3*x + phi(x))*phi(x)^(-t) + (-phi(x))^t*(-4*x + phi(x)))/(2*phi(x) - x).
We dub this linear combination of the Lucas and the Fibonacci polynomials the Lucanacci polynomials, and LF(t, 1) the Lucanacci function. The coefficients of the polynomials LF(-n, x) are for n >= 0 on the present page and for LF(n, x) in A396651.
LINKS
Peter Luschny, Illustration of the A396650 polynomials.
FORMULA
T(n, k) are the coefficients of P(n, x) = U(n, -x/2) + 4*x*U(n - 1, -x/2), where U(n, x) are the Chebyshev U polynomials.
The connection with the Lucas and Fibonacci polynomials:
P(n, x) = (-1)^n*(Lucas(n, x) - 7*x*Fibonacci(n, x)) / 2.
The Binet representation of the polynomials:
P(n, x) = mu(x)*phi(-x)^n + (1-mu(x))*(-x-phi(-x))^n, where phi(x) = (x + sqrt(x^2+4))/2, and mu(x) = (1 + 7*x/sqrt(x^2+4))/2. Note that phi(1) = A001622, and mu(1) = A189961.
G.f.: (1 + 4*x*y) / (1 + x*y - y^2).
E.g.f.: exp(-x*y/2)*(cosh(h*y) + g*sinh(h*y)), where h = phi(x) - x/2, and g = 2*mu(x) - 1. Notice that the only difference between this and the EGF of A396651 is the minus sign in the leading exponential factor.
T(n, k) = 0 if n - k is odd, T(0, 0 ) = 1, T(n, n) = (-1)^(n + 1)*3 for n > 0, and otherwise T(n, k) = (-1)^n*(n - 7*k)*binomial((n + k)/2 - 1, k) / (n - k). (See A396649.)
Sum_{k=0..n} T(n, k) = A396201(n).
EXAMPLE
Table starts:
0: 1;
1: 0, 3;
2: 1, 0, -3;
3: 0, 2, 0, 3;
4: 1, 0, -5, 0, -3;
5: 0, 1, 0, 8, 0, 3;
6: 1, 0, -6, 0, -11, 0, -3;
7: 0, 0, 0, 14, 0, 14, 0, 3;
8: 1, 0, -6, 0, -25, 0, -17, 0, -3;
9: 0, -1, 0, 20, 0, 39, 0, 20, 0, 3;
10: 1, 0, -5, 0, -45, 0, -56, 0, -23, 0, -3;
11: 0, -2, 0, 25, 0, 84, 0, 76, 0, 26, 0, 3;
MAPLE
flat := ListTools:-FlattenOnce:
PolyTriangle := proc(len, start, pos) local c, i, a, b, row;
c := [[1], [0, start]];
for i from 3 to len do
a := flat([op([0]), c[i-1]]); b := flat([c[i-2], op([0, 0])]);
if pos then row := zip((x, y) -> y + x, a, b);
else row := zip((x, y) -> y - x, a, b) fi;
c := [op(c), row]; od; c end:
# Using the above template function:
A396650poly := n -> PolyTriangle(n, 3, false):
for row in A396650poly(12) do lprint(row) od;
# Alternative:
A396650poly := proc(n, x) option remember;
if n = 0 then 1 elif n = 1 then 3*x else -x*procname(n-1, x) + procname(n-2, x) fi end:
Trow := n -> local k; seq(coeff(A396650poly(n, x), x, k), k = 0..n):
seq(print(Trow(n)), n = 0..11);
MATHEMATICA
P[0] = 1; P[1] = 3 x; P[n_] := P[n] = Expand[-x P[n - 1] + P[n - 2]];
Table[CoefficientList[P[n], x], {n, 0, 11}]
(* Alternative: Chebyshev polynomials.*)
P[n_, x_] := Expand[I^n * ChebyshevU[n, (I*x)/2] + 4*x * I^(n - 1) * ChebyshevU[n - 1, (I*x)/2]]
Table[CoefficientList[P[n, x], x], {n, 0, 11}]
(* Alternative: The Lucas/Fibonacci connection. *)
P[n_, x_] := (-1)^n * (LucasL[n, x] - 7 x Fibonacci[n, x]) / 2
Table[CoefficientList[P[n, x], x], {n, 0, 11}]
PROG
(Python)
def PolyTriangle(len: int, start: int, pos: bool) -> list[list[int]]:
c = [[1], [0, start]]
for i in range(2, len):
row1 = [0] + c[i-1] if pos else [0] + [-v for v in c[i-1]]
row2 = c[i-2] + [0, 0]
row = [t1 + t2 for t1, t2 in zip(row1, row2)]
c.append(row)
return c
A396650poly = lambda n: PolyTriangle(n, 3, False)
for row in A396650poly(12): print(row)
CROSSREFS
KEYWORD
AUTHOR
Peter Luschny, Jun 01 2026
STATUS
approved
