Integer part of the geometric mean of the divisors of N | Python3 implementation of the approach ; Function to return the integer part of the geometric mean of the divisors of n ; Driver code
from math import sqrt NEW_LINE def geometricMean ( n ) : NEW_LINE INDENT return int ( sqrt ( n ) ) ; NEW_LINE DEDENT if __name__ == " _ _ main _ _ " : NEW_LINE INDENT n = 16 ; NEW_LINE print ( geometricMean ( n ) ) ; NEW_LINE DEDENT