I am trying to calculate the total of the 1500th row in a pascal triangle in C ++.
I tried over 6 different pieces of code from around the web.
Some of them crashed to the 10th line, some went crazy, etc.
How can I calculate the total number of numbers in the 1500th row in a Pascal triangle.
I think that there should be a formula for finding a line without iterating over each line, because iterations cause the program to crash.
source share