Program to find the Nth term of the series 3 , 20 , 63 , 144 , 230 , â €¦ â €¦ | CPP program to find N - th term of the series : 3 , 20 , 63 , 144 , 230 . ... . ; calculate Nth term of series ; return final sum ; Driver code
#include <iostream> NEW_LINE #include <math.h> NEW_LINE using namespace std ; int nthTerm ( int n ) { return 2 * pow ( n , 3 ) + pow ( n , 2 ) ; } int main ( ) { int N = 3 ; cout << nthTerm ( N ) ; return 0 ; }