human
Find the first natural number whose factorial is divisible by x | function for calculating factorial.
function for check Special_Factorial_Number.
call fact function and the Modulo with k and check if condition is TRUE then return i.
Driver Code.
taking input"
How can the above be solved in Python?
assistant
#Here is code to find the first natural number whose factorial is divisible by x and the other steps required.
 def fact ( n ) :
	num = 1
	for i in range ( 1 , n + 1 ) :
		num = num * i
	return num
def Special_Factorial_Number ( k ) :
	for i in range ( 1 , k + 1 ) :
		if ( fact ( i ) % k == 0 ) :
			return i
	return 0
if __name__ == ' _ _ main _ _ ' :
	k = 16
	print ( Special_Factorial_Number ( k ) )