The only remarkable thing in this problem is the realization that: Squares of first N natural numbers = Sum of cubes of first N natural numbers i.e. (1 + 2 + 3 + 4 .. N)^2 = 1^3 + 2^3 + 3^3 + ... + N^3