Text this: A general relation between sums of cubes and triangular pyramidal numbers