Pentacontahenagon Number | Java program for the above approach ; Function to find the N - th Pentacontahenagon Number ; Driver Code ; Function Call
import java . util . * ; class GFG { static int PentacontahenagonNum ( int N ) { return ( 49 * N * N - 47 * N ) / 2 ; } public static void main ( String [ ] args ) { int N = 3 ; System . out . print ( "3rd ▁ Pentacontahenagon ▁ Number ▁ is ▁ " + PentacontahenagonNum ( N ) ) ; } }