Icosihenagonal Number | Java program to find nth Icosihenagonal number ; Function to find Icosihenagonal number ; Formula to calculate nth Icosihenagonal number ; Driver Code
class GFG { static int Icosihenagonal_num ( int n ) { return ( 19 * n * n - 17 * n ) / 2 ; } public static void main ( String [ ] args ) { int n = 3 ; System . out . print ( Icosihenagonal_num ( n ) + "NEW_LINE"); n = 10 ; System . out . print ( Icosihenagonal_num ( n ) + "NEW_LINE"); } }