Program to check if N is a Myriagon Number | Function to check if N is a Myriagon Number ; Condition to check if the number is a Myriagon number ; Given Number ; Function call
function isMyriagon ( N ) { n = ( 9996 + Math . sqrt ( 79984 * N + 99920016 ) ) / 19996 ; return ( n - parseInt ( n ) ) == 0 ; } N = 10000 ; if ( isMyriagon ( N ) ) { document . write ( " " ) ; } else { document . write ( " " ) ; }