from math import factorial
def f(n):
if n>=5000:
return factorial (n)
else:
return 2*f(n+1)/(n+1)
print(f(7))
from math import factorial
def f(n):
if n >= 5000:
return factorial(n)
else:
return 2 * f(n + 1) / (n + 1)
print(f(7))