Program to check if N is a Centered Tridecagonal Number | Function to check if the number N is a Centered tridecagonal number ; Condition to check if the N is a Centered tridecagonal number ; Given Number ; Function call
function isCenteredtridecagonal ( N ) { let n = ( 13 + Math . sqrt ( 104 * N + 65 ) ) / 26 ; return ( n - parseInt ( n ) ) == 0 ; } let N = 14 ; if ( isCenteredtridecagonal ( N ) ) { document . write ( " " ) ; } else { document . write ( " " ) ; }