Decakismyriagon Number | C ++ program for the above approach ; Function to find the N - th Decakismyriagon Number ; Driver Code ; Given Number N ; Function Call
#include <bits/stdc++.h> NEW_LINE using namespace std ; int DecakismyriagonNum ( int N ) { return ( 99998 * N * N - 99996 * N ) / 2 ; } int main ( ) { int N = 3 ; cout << DecakismyriagonNum ( N ) ; return 0 ; }