Question
Let $n$ be a positive integer, and let $a_1,\ \dots,\ a_n$ be formal variables. Is $$ P = a_1\cdots a_n + \frac1{a_1\cdots a_n} $$ a polynomial in the $n$ expressions $a_1 + \frac1{a_2},\ a_2 + \frac1{a_3},\ \dots,\ a_{n-1} + \frac1{a_n},\ a_n + \frac1{a_1}$?
As examples, letting $b_i = a_i + \frac1{a_{i+1}}$ for convenience, with indices taken modulo $n$,
- for $n = 1$, we have $P = b_1$.
- for $n = 2$, we have $P = b_1b_2 - 2$.
- for $n = 3$, we have $P = b_1b_2b_3 - b_1 - b_2 - b_3$.
- for $n = 4$, we have $P = b_1b_2b_3b_4 - b_1b_2 - b_2b_3 - b_3b_4 - b_4b_1 + 2$.
Motivation
The motivation for this question comes from the specialization $a_1 = \dots = a_n = a$, for which the answer is known to be yes, with the Chebyshev polynomials of the first kind (involving a different normalization) serving as suitable polynomials. Indeed, letting $b = a + \frac1a$, the four example polynomials above become $$b,\quad b^2 - 2,\quad b^3 - 3b,\quad b^4 - 4b^2 + 2,$$ which match the polynomials $2T_\bullet(\frac b2)$.
Thus, these polynomials could be interpreted as multivariate generalizations of Chebyshev polynomials. However, I'm not aware of any such polynomials in the literature.
Possible Progress
A polynomial for $P$, if it exists, should be unique. This is because the monomials in the $b_\bullet$ are linearly independent, as (interpreted as Laurent polynomials in the $a_\bullet$) each monomial has exactly one highest-degree term, and these highest-degree terms are all different.
The polynomial for $P$ seems to have a reasonable description, as follows:
- The polynomial is multilinear in the $b_\bullet$.
- Given a nonempty index set $S \subseteq \mathbb Z/n\mathbb Z$, the term $\prod_{i \in S} b_i$ is included if and only if the following condition is satisfied: as we travel along $\mathbb Z/n\mathbb Z$ in the natural way, the distance between any two consecutive elements of $S$ is odd.
- Note that this automatically forces $|S| \equiv n \pmod 2$.
- The coefficient corresponding to this term is $(-1)^\frac{n - |S|}2$; i.e., the sign we'd expect from the Chebyshev polynomial.
- The empty set $\varnothing$ obeys similar rules. It is included (i.e. the polynomial has a constant term) if and only if $n$ is even; this matches the parity condition above.
- Its coefficient is doubled compared to what the previous rule would suggest. That is, it appears with a coefficient of $2(-1)^\frac n2$, matching the constant term of the corresponding Chebyshev polynomial.
The following (inefficient) Sage code carries out this construction. I've used it to verify the construction for $n \le 16$, though it gets slow very quickly.
from math import prod
from itertools import combinations, pairwise
def valid(l, N):
return len(l) % 2 == N % 2 and all(u != v for u, v in pairwise(x % 2 for x in l))
N = 10
a = [var(f'a{i}') for i in range(N)]
b = [a[i] + 1/a[(i+1)%N] for i in range(N)]
expr = 0
for m in range(N+1):
for p in combinations(range(N), m):
if valid(p, N):
expr += (2 if m == 0 else 1) * (-1) ** ((N - m) // 2) * prod(b[i] for i in p)
print(expand(expr))