Decakismyriagon Number | Java program for the above approach ; Function to find the N - th Decakismyriagon Number ; Driver code ; Given Number N ; Function Call
class GFG { static int DecakismyriagonNum ( int N ) { return ( 99998 * N * N - 99996 * N ) / 2 ; } public static void main ( String [ ] args ) { int N = 3 ; System . out . println ( DecakismyriagonNum ( N ) ) ; } }