Assume we have sequence of polynomials : $P_i(q)$ - each term is polynomial in $q$. (With integer coefficients, but hopefully it is not important).
We expect that there exists recurrence relation a kind of: $P_{n}(q) = \sum_{i=1...d} C_i(q^n,q) P_{n-i}(q) $,
but might be a bit more tricky - there can be a term in front of $P_{n}(q)$, i.e.: $C_0(q^n,q)P_{n}(q) = \sum_{i=1...d} C_i(q^n,q) P_{n-i}(q) $ . That small detail might complicate application of some methods, because basically what we are asking - solving some system of linear equations - which have trivial unwanted solution - all zeros. To avoid that we need to normalize the relation - that is trivial in the first case, and less trivial in the second - since we do not know what term is non-zero.
Question: Is there any algorithm (or (better) ready to use package) to find these $C_i$ for given input sequence of polynomials?
Trivial example can be : $$P_0(q) = 1 , P_1(q) = q , P_2(q) = q^2, ... $$ then recurrence $$P_n(q) = q P_{n-1}(q)$$
Non-trivial example can be found here: https://mathoverflow.net/a/469903/10446
Some more potential applications:
Count Manin matrices: Number of $F_p$-matrices ac=ca, bd = db , ad - da = cb - bc is polynomial in p ? ("Manin matrix variety" - normal ? Cohen–Macaulay ? )
Count polynomial nilpotent matrices: Nilpotent polynomial matrices over $F_q$ - polynomial count variety ? ( Nilpotent cone for Hitchin-Gaudin like integrable system)
Count commuting matrices with block structures: Count N-tuples of commuting matrices over $F_q$ is given by polynomials with pattern $\sum q^{A_i(N)} P_{i}(q) $, where $P_i$ - do not depend on $N$?