\[p\left(\mathcal{D}k,n\right)=\sum p_{m}\left(n-\tfrac{1}{2}km^{2}-m+\tfrac{1}{%
2}km\right),\]