Problem:
Pascal has a triangle. In the th row, there are numbers where . For all , . Let be the value of the sum
Estimate .
An estimate of earns points.
Problem:
Pascal has a triangle. In the th row, there are numbers where . For all , . Let be the value of the sum
Estimate .
An estimate of earns points.
Solution:
```python
import math
lists=[[1]]
for i in range(2018):
newlist=[]
for j in range(i):
newlist.append(lists[-1][j+1]-lists[-1][j])
lists.append([1]+newlist+[1])
big=math.factorial(2018)
sum=0
for i in range(2019):
sum+=abs(lists[-1]*)/(big//math.factorial(i)//math.factorial(2018-i))
print(sum)
```