A formula based C ++ program to find sum of series with cubes of first n natural numbers
#include <iostream> NEW_LINE using namespace std ; int magicOfSequence ( int N ) { return ( N * ( N + 1 ) / 2 ) + 2 * N ; }