Program to check if N is a Centered nonadecagonal number | Function to check that the number is a Centered nonadecagonal number ; Condition to check if the number is a Centered nonadecagonal number ; Driver Code ; Function call
function isCenterednonadecagonal ( N ) { var n = ( 19 + Math . sqrt ( 152 * N + 209 ) ) / 38 ; return ( n - parseInt ( n ) ) == 0 ; } var n = 20 ; if ( isCenterednonadecagonal ( n ) ) { document . write ( " " ) ; } else { document . write ( " " ) ; }