TITLE: Help with combinatorial proof of binomial identity: $\sum\limits_{k=1}^nk^2{n\choose k}^2 = n^2{2n-2\choose n-1}$
QUESTION [8 upvotes]: Consider the following identity:
\begin{equation}
\sum\limits_{k=1}^nk^2{n\choose k}^2 = n^2{2n-2\choose n-1}
\end{equation}
Consider the set $S$ of size $2n-2$. We partition $S$ into two sets $A$ and $B$, each of size $n-1$. Now, we further partition $S$ into $n$ parts: $C_0, C_1, \ldots C_{n-1}$
By the addition principle we have ${2n-2\choose n-1} = \sum\limits_{k=0}^{n-1}C_k$ 
Additionally, each $C_k$ is given by ${n-1\choose k}{n-1\choose n-1-k}={n-1\choose k}^2$ since $k$ of the elements will be in $A$ and $n-1-k$ elements will be in $B$. Thus we have:
\begin{align}
\sum\limits_{k=0}^{n-1}{n-1\choose k}^2 =&{2n-2\choose n-1} 
\end{align}
Reindexing:
\begin{equation}
\sum\limits_{k=1}^{n}{n-1\choose k-1}^2 = {2n-2\choose n-1} 
\end{equation}
Here is where I am lost. I cannot think of a combinatorial argument for the $n^2$ and what remains on the left. If you have better ideas skip this! My first thought is the following:
\begin{equation}
\sum\limits_{k=1}^{n}n{n-1\choose k-1}^2 = n{2n-2\choose n-1}
\end{equation}
This is counting the same thing, but what is $n$? The reason I do this is because now all I need is a $k$ in the sum on the LHS:
\begin{equation}
\sum\limits_{k=1}^{n}kn{n-1\choose k-1}^2 = \sum\limits_{k=1}^{n}k^2\dfrac{n}{k}{n-1\choose k-1}^2 = \sum\limits_{k=1}^{n}k^2{n\choose k}^2
\end{equation}
And somehow this is equivalent to the RHS $n^2{2n-2\choose n-1}$ Again though, what is the combinatorial argument?
Thanks for all the help!

REPLY [2 votes]: $\newcommand{\angles}[1]{\left\langle\, #1 \,\right\rangle}
 \newcommand{\braces}[1]{\left\lbrace\, #1 \,\right\rbrace}
 \newcommand{\bracks}[1]{\left\lbrack\, #1 \,\right\rbrack}
 \newcommand{\dd}{{\rm d}}
 \newcommand{\ds}[1]{\displaystyle{#1}}
 \newcommand{\dsc}[1]{\displaystyle{\color{red}{#1}}}
 \newcommand{\expo}[1]{\,{\rm e}^{#1}\,}
 \newcommand{\half}{{1 \over 2}}
 \newcommand{\ic}{{\rm i}}
 \newcommand{\imp}{\Longrightarrow}
 \newcommand{\Li}[1]{\,{\rm Li}_{#1}}
 \newcommand{\pars}[1]{\left(\, #1 \,\right)}
 \newcommand{\partiald}[3][]{\frac{\partial^{#1} #2}{\partial #3^{#1}}}
 \newcommand{\root}[2][]{\,\sqrt[#1]{\vphantom{\large A}\,#2\,}\,}
 \newcommand{\totald}[3][]{\frac{{\rm d}^{#1} #2}{{\rm d} #3^{#1}}}
 \newcommand{\verts}[1]{\left\vert\, #1 \,\right\vert}$
We'll use ( several times ! ) the identity $\ds{%
{m \choose \ell} = \oint_{\verts{z} = 1}{\pars{1 + z}^{m} \over z^{\ell + 1}}
\,{\dd z \over 2\pi\ic}}$ which provides a systematic evaluation in several cases.

\begin{align}
\color{#f00}{\sum_{k = 1}^{n}k^{2}{n \choose k}^{2}} & =
\sum_{k = 0}^{n}k^{2}{n \choose k}{n \choose n - k} =
\sum_{k = 0}^{n}k^{2}{n \choose k}
\oint_{\verts{z} = 1}{\pars{1 + z}^{n} \over z^{n - k + 1}}
\,{\dd z \over 2\pi\ic}
\\[3mm] &=
\oint_{\verts{z} = 1}{\pars{1 + z}^{n} \over z^{n + 1}}
\sum_{k = 0}^{n}{n \choose k}k^{2}z^{k}\,{\dd z \over 2\pi\ic}
\\[3mm] & =
\oint_{\verts{z} = 1}{\pars{1 + z}^{n} \over z^{n + 1}}\bracks{%
\pars{z\,\partiald{}{z}}^{2}
\sum_{k = 0}^{n}{n \choose k}z^{k}}\,{\dd z \over 2\pi\ic}
\\[3mm] & =
\oint_{\verts{z} = 1}{\pars{1 + z}^{n} \over z^{n + 1}}\bracks{%
\pars{z\,\partiald{}{z}}^{2}\pars{1 + z}^{n}}\,{\dd z \over 2\pi\ic}
\\[3mm] & =
\oint_{\verts{z} = 1}{\pars{1 + z}^{n} \over z^{n + 1}}\bracks{%
n\pars{1 + z}^{n - 2}\pars{nz^{2} + z}}\,{\dd z \over 2\pi\ic}
\\[3mm] & =
n^{2}\oint_{\verts{z} = 1}{\pars{1 + z}^{2n - 2} \over z^{\pars{n - 2} + 1}}
\,{\dd z \over 2\pi\ic} +
n\oint_{\verts{z} = 1}{\pars{1 + z}^{2n - 2} \over z^{\pars{n - 1} + 1}}
\,{\dd z \over 2\pi\ic}
\\[3mm] & = n^{2}{2n - 2 \choose n - 2} + n{2n - 2 \choose n - 1}
\\[3mm] & =
n^{2}\,{\pars{2n - 2}! \over \pars{n - 2}!\,n!} +
n\,{\pars{2n - 2}! \over \pars{n - 1}!\pars{n - 1}!} =
n\,{\pars{2n - 2}! \over \pars{n - 1}!}
\bracks{{n - 1 \over \pars{n - 1}!} + {1 \over \pars{n - 1}!}}
\\[3mm] & = \color{#f00}{n^{2}{2n - 2 \choose n - 1}}
\end{align}