求1!+2!+...+8!
时间: 2024-06-15 10:07:48 浏览: 66
1!+2!+..n!
求1!+2!+...+8!的结果可以通过逐个计算每个阶乘然后相加得到。首先,我们来计算每个数的阶乘:
1! = 1
2! = 2 * 1 = 2
3! = 3 * 2 * 1 = 6
4! = 4 * 3 * 2 * 1 = 24
5! = 5 * 4 * 3 * 2 * 1 = 120
6! = 6 * 5 * 4 * 3 * 2 * 1 = 720
7! = 7 * 6 * 5 * 4 * 3 * 2 * 1 = 5040
8! = 8 * 7 * 6 * 5 * 4 * 3 * 2 * 1 = 40320
然后将这些阶乘相加:
1! + 2! + 3! + 4! + 5! + 6! + 7! + 8! = 1 + 2 + 6 + 24 + 120 + 720 + 5040 + 40320 = 409113
所以,1!+2!+...+8!的结果为409113。
阅读全文