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