Program to find Nth term of series 9 , 23 , 45 , 75 , 113. . . | CPP program to find N - th term of the series : 9 , 23 , 45 , 75 , 113. . . ; calculate Nth term of series ; Driver Function ; Get the value of N ; Find the Nth term and print it
#include <iostream> NEW_LINE using namespace std ; int nthTerm ( int N ) { return ( 2 * N + 3 ) * ( 2 * N + 3 ) - 2 * N ; } int main ( ) { int N = 4 ; cout << nthTerm ( N ) ; return 0 ; }