0

According to Nicomachus' theorem, the sum of the first n cubes is equal to the square of the nth triangular number. See this question for a visualisation.
Your task today is to take an integer and determine if it is in the sequence of the sum of the first n cubes.
I take the opportunity to say Ha...