Pentacontahenagon Number | C ++ program for the above approach ; Function to find the N - th Pentacontahenagon Number ; Driver Code ; Function Call
#include <bits/stdc++.h> NEW_LINE using namespace std ; int PentacontahenagonNum ( int N ) { return ( 49 * N * N - 47 * N ) / 2 ; } int main ( ) { int N = 3 ; cout << "3rd ▁ Pentacontahenagon ▁ Number ▁ is ▁ " << PentacontahenagonNum ( N ) ; return 0 ; }