Find n | Program to find n - th element in the series 9 , 33 , 73 , 128. . ; Returns n - th element of the series ; driver program to test the above function
#include <bits/stdc++.h> NEW_LINE using namespace std ; int series ( int n ) { return ( 8 * n * n ) + 1 ; } int main ( ) { int n = 5 ; cout << series ( n ) ; return 0 ; }