Program to check if N is a Myriagon Number | Python3 implementation to check that a number is a myriagon number or not ; Function to check that the number is a myriagon number ; Condition to check if the number is a myriagon number ; Given Number ; Function call
import math NEW_LINE def isMyriagon ( N ) : NEW_LINE INDENT n = ( 9996 + math . sqrt ( 79984 * N + 99920016 ) ) / 19996 NEW_LINE return ( n - int ( n ) ) == 0 NEW_LINE DEDENT n = 10000 NEW_LINE if ( isMyriagon ( n ) ) : NEW_LINE INDENT print ( " Yes " ) NEW_LINE DEDENT else : NEW_LINE INDENT print ( " No " ) NEW_LINE DEDENT