Triacontagon Number | Finding the nth triacontagonal number ; Driver code
function triacontagonalNum ( n ) { return ( 28 * n * n - 26 * n ) / 2 ; } var n = 3 ; document . write ( " " + triacontagonalNum ( n ) ) ;