Tetracontaoctagonal Number | Java program for above approach ; Function to find the nth TetracontaoctagonalNum Number ; Driver code
class GFG { static int TetracontaoctagonalNum ( int n ) { return ( 46 * n * n - 44 * n ) / 2 ; } public static void main ( String [ ] args ) { int n = 3 ; System . out . print ( TetracontaoctagonalNum ( n ) ) ; } }