Tetracontadigonal Number | Function to find the nth Tetracontadigonal Number ; Driver Code
function TetracontadigonalNum ( n ) { return ( 40 * n * n - 38 * n ) / 2 ; } let n = 3 ; document . write ( TetracontadigonalNum ( n ) ) ;