The sum of all the numbers in the first n rows of Yang Hui triangle is

The sum of all the numbers in the first n rows of Yang Hui triangle is


n=1,s=1=2^1-1
n=2,s=3=2^2-1
n=3,s=7=2^3-1
n=4,s=15=2^4-1
……
S=2^n-1



What is the third number in line 101 of Yang Hui triangle?
What is the third number in line 52 of Yang Hui triangle? How to calculate it,


The third number in line 101 is 4950
The third number in line 52 is 1275
This is a formula. The first one is C 100 2 (100 should be above 2). The formula is 100 × 99 / 2 = 4950
The second is 51 × 50 / 2 = 1275



What is the sum of all the figures in the first ten lines of Yang Hui's triangle?


Yanghui triangle
one
1 1
1 2 1
1 3 3 1
.
Sum of each line
one
two
four
eight
...
The sum of the nth line is 2 ^ (n-1)
Top ten lines and
1+2+2^2+2^3+...+2^9=2^10-1=1024-1=1023