here I asked how to get the coefficients of the expression $$\prod_{p=1}^n (x^p+1)^p$$ and I got that $$ a(n,k)=\sum_{\substack{\sum_{j=1}^n j g_j=k \\ g_j\in\{0,1,..,j\}}}\prod_{j=1}^n \binom{j}{g_j}$$ and then I found formula for A026007
$$ a_n=\sum_{\substack{\sum_{j=1}^n j g_j=n \\ g_j\in\{0,1,..,j\}}}\prod_{j=1}^n \binom{j}{g_j}$$ So my question is there a way to find all $(g_1,g_2,...,g_n)$ such that $$ \sum_{j=1}^n j g_j=n \space \space , \space g_j\in\{0,1,..,j\}$$
for example for $n=1$ we get easily that $g_1=1$
and for $n=2$
$$ g_1+2g_2=2 , g_1 \in \{0,1 \} , g_2 \in \{0,1,2 \}$$
So $(g_1,g_2)=(0,1)$
and for $n=3$
$$ g_1+2g_2+3g_3=3 , g_1\in\{0,1\} , g_2\in\{0,1,2\} ,g_3\in \{0,1,2,3\} $$
So $$ (g_1,g_2,g_3)=\{ (0,0,1) , (1,1,0)\} $$