Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
@FedorPetrov, my approach to numerical tests is to calculate $S(m, q)(d)^2 - S(m, q)(d-1)S(m, q)(d+1)$ as a polynomial in $q$, bound its largest real root, and test all integers from $2$ up to that bound. Using that approach I've found no counterexamples for $2 \le m \le 8$, $1 \le d < 100$. As a bonus observation, for $m > 4$ the largest upper bound I've found was about $4.4$, so not many values of $q$ need to be tested.
I'm curious about your experimental data. I'm experimenting with $k=m=2$, $f_i$ up to cubic terms, coefficients from $\{-1,0,1\}$ except fixed constant coefficients $-5$ and $-13$ (as a compromise because working over $\mathbb{Q}[a,b]$ and using constant coefficients $-a$ and $-b$ ran into memory trouble), and in hundreds of thousands of tests I haven't yet found a case which doesn't appear to have a linear recurrence of order at most $9$.
Don't you need to specify a term ordering for Gröbner base calculations in order to define $a(n)$? Otherwise if e.g. $f_1 = x_1 - x_2 - 3$ it's arbitrary whether $t(1) = x_1 + x_2 = 2x_1 - 3 = 2x_2 + 3$ yields $a(1) = 0$ or $a(1) = 2$.
Incidentally the "injective" and "such that their images are disjoint", which capture the original definition of $W$ as a "subset of $K$", are unused and unnecessary in this case. If $i \neq j$ then clearly $w(i) \neq w(j)$ and $w(i) \neq \overline{w}(j)$ since otherwise respectively $w(i) \overline{w}(j)$ or $w(i)w(j)$ would be zero, violating the condition. We can weaken to $w(i) \neq \overline{w}(i)$ (in the original formulation, $W[i] \neq W[i+k]$), but that constraint is then only relevant if there are non-zero square roots of zero in $K$.
@DenisIvanov, the easy statements are that powers of 2 are irrelevant (because they certainly don't cause carries); the odd part must be squarefree; and if odd primes $p$ and $q$ both occur then $(p-1) + (q-1)$ must also be without carries.
The examples you give can easily be explained by observing that the property always holds for $n$ of the form $2^a p$ when $p$ is prime. Perhaps the easiest characterisation, although maybe not the most useful, is that $Q_n = P_n$ whenever $Q_n$ is a $0,1$-polynomial.