Let $n$ be positive integer. Consider its integer partitions denoting as $(m_1,\cdots,m_k)$, where $m_1+\cdots+m_k=n$ and the order does not matter. We ignore the case of $(m_1,\cdots,m_k)=n$.
I am interested in
$$\binom{m_1}{2}+\cdots+\binom{m_k}{2}$$
My question is, what property of partition $m_1,\cdots,m_k\vdash n$ makes two quantities large or small? What is the tight upper bound of each of them, in the sense that it reflects difference on different partitions? If it is not possible to derive non-asymptotic bound, it is good enough to have asymptotic bound (for large $n$) in my case.
Here are few points I've thought of to the best of my ability:
I am not familiar with integer partition and combinatorics, thus am not sure whether this problem is trivial or too hard. If this is too hard, could we somehow simplify the problem to make it solvable? As far as I could think of, maybe classify partitions according to certain property (maybe, the size of parts?).
I think in general, this is a type of problem that asking: given a function on variables representing partitions, when does this function large or small, depending on the partition. Is there any other problem within this type such that I could refer to their methods?
A graph interpretation of the quantity: Consider a graph with $n$ isolated nodes, now we add edges such that the resulting new graph is a cluster graph, i.e. a union of disjoint $k$ cliques (complete graph $K_n$ and $n$ isolated nodes as two extremes of cluster graph). The number of edges is equal to $\binom{m_1}{2}+\cdots+\binom{m_k}{2}$.
Moreover, it is pointed out that $\binom{m_1}{2}+\cdots+\binom{m_k}{2}=\frac{(\sum_{i=1}^km_k^2)-n}{2}$ in this paper.
- This problem seems can be seen as combinatorial optimization over integer partitions. I am not sure.
I would be very appreciate for any comment/suggestion.