Heptacontagon Number | Java program for the above approach ; Finding the nth heptacontagon number ; Driver Code
class GFG { static int heptacontagonNum ( int n ) { return ( 68 * n * n - 66 * n ) / 2 ; } public static void main ( String [ ] args ) { int N = 3 ; System . out . println ( "3rd ▁ heptacontagon ▁ Number ▁ is ▁ = ▁ " + heptacontagonNum ( N ) ) ; } }