For real $0<q<1$, integer $n >0 $ and integer $k\ge 0$, define $$[k, n]_q \equiv -\sum_{m=1}^{n} q^{m(k+1)} (q^{-n}; q)_m = -\sum_{m=1}^{n} q^{m(k+1)} \prod_{l=0}^{m-1} (1-q^{l-n})$$
where $(\cdot\; ; q)_n$ is a $q$-Pochhammer symbol.
These functions express exact occupation numbers of $k$-th energy level in an ideal Fermi gas with equidistant spectrum and exactly $n$ fermions. (For physicists, $q$ is just $e^{-\Delta \epsilon/ kT}$).
My numerical experiments with Mathematica show so far :
- All $[k, n]_q$ are polynomials in $q$.
- $0<[k, n]_q<1$ for $0<q<1$.
- $\lim\limits_{q\to 1} [k, n]_q = 0$.
- $\lim\limits_{q\to 0} [k, n]_q = \begin{cases} 1, & k < n \\ 0, & k \ge n \end{cases}$.
Points (2.) to (4.) can be proven from the physics starting point, but I'm totally puzzled by (1.). The product from $l=0$ to $m-1$ contains negative powers of $q$ because of $n >l$, nevertheless, they conspire to cancel in the final sum.
Why are these functions polynomials? What would be the optimal way to compute their coefficients? Are there deeper mathematical properties to them?
Combinatorial context. The original "combinatorial physics" definition of these numbers can be written as
$$[k, n]_q =\frac{\sum_{ \{ \nu_k \} } \nu_k q^{\sum_k k \nu_k} \delta_{n, \sum_k \nu_k}}{\sum_{ \{ \nu_k \} }q^{\sum_k k \nu_k} \delta_{n, \sum_k \nu_k}}$$
where the summation indices run as $\nu_k=0,1$ for $k=0, 1, 2 \ldots$. Properties (2.)-(4.) follow easily from this definition. More physics context for the problem is being prepared for publication, see also a related post at Physics.SE.
Update: A physics paper describing these polynomials has been posted to arXiv, includes a reference to this question.
QHypergeometricPFQ[{q^(-n), q}, {0}, q, q^(k + 1)] - 1
looks to be a more compact way of expressing your polynomials. $\endgroup$