Pentacontagon number | Finding the nth pentacontagon Number ; Driver code
function pentacontagonNum ( n ) { return ( 48 * n * n - 46 * n ) / 2 ; } let n = 3 ; document . write ( " " + pentacontagonNum ( n ) ) ;