I'm attempting to solve this problem, and I've reached an impasse. Because I'm attempting to solve for the first value.
$$ \sum_{i=1}^N N^3 = \left( \sum_{i=1}^N i \right)^2 $$
I then get $(N(N+1)/2)^2$ which then expands to $(N^4 + 2N^3 + N^2)/2$.
After this point I'm lost and not sure where to go to continue the problem.