Tetracontadigonal Number | C ++ implementation for the above approach ; Function to find the nth Tetracontadigonal Number ; Driver Code
#include <bits/stdc++.h> NEW_LINE using namespace std ; int TetracontadigonalNum ( int n ) { return ( 40 * n * n - 38 * n ) / 2 ; } int main ( ) { int n = 3 ; cout << TetracontadigonalNum ( n ) ; return 0 ; }