Recall that for $t\geq2$, a partition is a $t$-core if none of its hooklengths is divisible by $t$. It is known that the $t$-cores are parametrized by ${\mathbb Z}^{t-1}$. More precisely, let $(n\_0,\dots,n\_{t-2})$ be a $(t-1)$-tuple of integers and set $n\_{t-1}:=-\sum\limits\_{i=0}^{t-2}n\_i$. Define $r\_i=\sum\limits\_{k=0}^{t-1}(n\_k^2+\epsilon(i,k)n\_k)/2$ for all $t$-residues $i$, where $\epsilon(i,k)=\left\{\begin{array}{rr}1,&\,\,\mbox{if $i\geq k$}\\-1,&\,\,\mbox{if $i<k$}\end{array}\right.$. Then there is a unique partition which is a $t$-core and which has $r\_i$ nodes of $t$-residue $i$ [MR1055707 Reviewed Garvan, Frank; Kim, Dongsu; Stanton, Dennis Cranks and $t$-cores. Invent. Math. 101 (1990), no. 1, 1–17]. Notice that $n\_i=r\_i-r\_{i+1}$ for each residue $i$. 


Let $r(n):=(r\_0,r\_1,\dots,r\_{t-1})\in{\mathbb Z}^t$ depend on $n:=(n\_0,n\_1,\dots,n\_{t-2})$ as above and set $x^{r(n)}:=x\_0^{r\_0}x\_1^{r\_1}\dots x\_{t-1}^{r\_{t-1}}$ for indeterminates $x\_0,\dots,x\_{t-1}$. So the generating function for the $t$-residues of $t$-cores is
$$
K\_t(x):=\sum\_{n\in{\mathbb Z}^{t-1}}x^{r(n)}.
$$
Let $P(y)=\prod\_n(1-y^n)^{-1}$ be the partition generating function in the indeterminate $y$ and let $J=(1,\dots,1)$ be the all-$1$'s vector in ${\mathbb Z}^t$. Using the representation of partitions on an abacus with $t$ runners, the generating function for the $t$-residues of all partitions is
$$
P\_t(x)=P(x^J)^tK\_t(x).
$$
According to Ben Elias, this is the generating function of the Fock space representation of $\hat{sl\_t}$. So it should have a product expansion using Heisenberg and $\hat{sl\_t}$ representation theory. For example, in a previous question [[Generating function related to 2-residues of partitions](https://mathoverflow.net/questions/86546/generating-function-related-to-2-residues-of-partitions]) I noted that the generating function for the $2$-residues of partitions factorizes as
$$
\begin{aligned}
P\_2(x)
&=P(x\_0x\_1)^2\sum\_{n\in{\mathbb Z}}x\_0^{n^2}x\_1^{n^2+n}\\
&=\prod\limits\_{n=1}^\infty\frac{(1+x\_0^{2n-1}x\_1^{2n})(1+x\_0^{2n-1}x\_1^{2n-2})(1+x\_0^nx\_1^n)}{(1-x\_0^nx\_1^n)}.
\end{aligned}
$$
This is a consequence of the Jacobi Triple Product Identity.


Question: can anyone explicitly factorize $P\_t(x)$ and provide a self-contained explanation of the relevant representation theory?



Generating function for $t$-residues of partitions using Heisenberg + $\hat{sl_t}$ representation theory
Denote by $\tilde{\mathcal F}$ the Fock space representation of $\widehat{sl}\_t$. In fact it is even a $\widehat{gl}\_t$-module, and as such irreducible. Now \begin{equation}\widehat{gl}\_t= \widehat{sl}\_t\oplus Heis \Big/ (Z\_{\widehat{sl}\_t}-Z\_{Heis}),\end{equation} where $Heis$ is the infinite dimensional Heisenberg, and the notation is meant to indicate that in the direct sum, one identifies the centres. This $Heis$-action on $\tilde{\mathcal F}$ is not the standard one, but is by a smaller subalgebra of the standard one (inside the standard Heisenberg acting on $\tilde{\mathcal F}$, one essentially takes only the generators with indices divisible by $t$). In terms of this decomposition, one has \begin{equation}\tilde{\mathcal F} = V(\omega\_0)\otimes {\mathcal F},\end{equation} where $V(\omega\_0)$ is the basic representation of $\widehat{sl}\_t$, whereas ${\mathcal F}$ is the standard Fock space representation of $Heis$. Note they both have central charge one, so the action factors through the quotient taken above. Everything so far is explained in much greater detail in Tingley's [Notes on Fock space](http://webpages.math.luc.edu/~ptingley/lecturenotes/Fock_space-2010.pdf) (Section 3E) or Leclerc's [Fock space representations...](https://hal.archives-ouvertes.fr/cel-00439741/document) (2.2.8).


Your $P\_t(x)$ is the character of $\tilde{\mathcal F}$. In terms of the decomposition above, we understand it as one factor of $P(x^J)$, and the rest. 


Now we have to understand how the rest becomes the character of the basic representation $V(\omega\_0)$ of $\widehat{sl}\_t$. There are several known constructions of the basic rep; the relevant one here is the Frenkel-Kac construction. That says that, as a vector space at least, \begin{equation}V(\omega\_0) \cong {\mathcal F}^{t-1}\otimes {\mathbb C}(Q),\end{equation}
where $\mathcal F$ is good old Fock space once again, and $Q$ is the finite root lattice of type $A\_{t-1}$. This basically gives the rest of the formula, once the relevant weights are computed explicitly: you have $t-1$ more copies of $P(x^J)$, and $K\_t(x)$ comes from the root lattice. The character of the basic representation is written in the form needed here for example in Theorem 20.23(d) of Carter's book Lie algebras of finite and affine type.


ADDED LATER


I believe $K\_t(x)$ itself admits no simple product expansion for $t>2$. Set $t=3$; it is easy to see that an appropriate specialisation of $K\_t(x)$ is the one-variable function
\begin{equation} L(q) = \sum\_{m,n\in\mathbb Z} q^{m^2+mn+n^2}.
\end{equation} 
As I learned from Garvan some years ago, this function $L(q)$ of a single variable $q$ has a zero inside the unit circle, at $q\_0=-\exp(-\pi/\sqrt{3})$, by a remark hidden on top of p.697 in [this paper](http://www.cecm.sfu.ca/personal/pborwein/PAPERS/P50.pdf) (which uses the same notation, except that it also introduces $a(q)$ for $L(q)$). This prevents $L(q)$ from admitting a product expansion in terms of $(1-q^n)$'s raised to a polynomial exponent in $n$, since functions admitting such expansions have no zeroes inside the unique circle. 


