I\'m trying to write a function to calculate such a sum:
∑_(k=0)^n 1/k!
So expected result with n = 2: 1/factorial(0) + 1/factorial(1) + 1/fa