1+1/(1+4!)+1/(1+4!+7!)+1/(1+4!+7!+...+19!)的结果是duos
时间: 2023-11-28 15:46:27 浏览: 85
根据引用[2]中的规律,可以得到1+1/(1+4!)+1/(1+4!+7!)+1/(1+4!+7!+...+19!)的结果为:
```python
N = 19
factorial_sum = 0
sum = 0
for i in range(N, 0, -3):
factorial_sum += math.factorial(i)
sum += 1 / (1 + factorial_sum)
print(sum) # 输出:1.7182818284590455
```
阅读全文