Program to check if N is a triacontagonal number | Function to check whether a number is an triacontagonal number or not ; Condition to check whether a number is an triacontagonal number or not ; Given number ; Function call
function istriacontagonal ( N ) { let n = ( ( 26 + Math . sqrt ( 224 * N + 676 ) ) / 56 ) ; return ( n - parseInt ( n ) ) == 0 ; } let N = 30 ; if ( istriacontagonal ( N ) ) { document . write ( " " ) ; } else { document . write ( " " ) ; }