Hexacontagon Number | Finding the nth hexacontagon number ; Driver code
function hexacontagonNum ( n ) { return ( 58 * n * n - 56 * n ) / 2 ; } var n = 3 ; document . write ( " " + hexacontagonNum ( n ) ) ;