Program to check if N is a Chiliagon Number | Function to check that if N is Chiliagon Number or not ; Condition to check if N is a Chiliagon Number ; Given Number ; Function call
function is_Chiliagon ( N ) { let n = ( 996 + Math . sqrt ( 7984 * N + 992016 ) ) / 1996 ; return ( n - Math . floor ( n ) ) == 0 ; } let N = 1000 ; if ( is_Chiliagon ( N ) ) { document . write ( " " ) ; } else { document . write ( " " ) ; }