Find the sum of all numbers in the pascal triangle from the first row to the 25th row inclusive.
Clarifications
For example, the sum of all numbers from the first row to the fourth row inclusive is 1+1+1+1+2+1+1+3+3+1 = 15
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
each row in pascals triangle has a sum of 2^(n-1) For e.g., first row 1 second row 2(1+1)...... So for n rows the sum would be 1+2+4+.....2^(n-1) =1{2^(n-1+1)-1}/2-1 =1{2^(n)-1} so on substituting n=25 we have 2^(25)-1 which gives 33554431 as the answer