6 5 4 1 6 3 1 1 2 7 2 5 1 4 1 4 2 7 2 5 3 1 1 4 1 6 5 6
If we form a number triangle as above, what is the sum of all the numbers in the triangle with 20 rows?
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.
Nico answero. Thank you.
Log in to reply
Glad that you like it. No upvote?
Bears some semblance to matrices... Note: continue to row 20
A = S 2 − S 1 = ∑ n = 2 2 1 ( 2 n − 2 ) − ∑ n = 0 1 9 2 n = 3 1 4 5 6 8 5
The triangle is "Pascal-like": the elements at the ends of row n have value n ; the other elements are the sum of the two elements above them.
It's well-known that the sums of the rows of Pascal's triangle are powers of 2 ; so it's worth looking at row sums here (clearly this would help solve the problem). The row sums for this triangle are 1 , 4 , 1 0 , 2 2 , 4 6 , 9 4 , … . A bit of pattern-spotting leads us to conjecture that each row sum is 2 more than twice the previous one - 1 0 = 2 + 2 × 4 , 2 2 = 2 + 2 × 1 0 , etc.
We could just assume this works and quickly get to the answer; but where's the fun in that?
If we want to prove this relationship, it'll help to introduce some notation. Say the r t h element of the n t h row is T ( n , r ) , where 1 ≤ r ≤ n (this is slightly different from the typical numbering used for Pascal's triangle, but avoids a bit of messiness).
The triangle is then defined by T ( n , 1 ) = T ( n , n ) = n and T ( n , r ) = T ( n − 1 , r − 1 ) + T ( n − 1 , r ) for 2 ≤ r ≤ n − 1 .
Let R ( n ) = ∑ r = 1 n T ( n , r ) be the n t h row sum.
We have
R ( n ) = r = 1 ∑ n T ( n , r ) = T ( n , 1 ) + [ r = 2 ∑ n − 1 T ( n , r ) ] + T ( n , n ) = 2 n + r = 2 ∑ n − 1 ( T ( n − 1 , r − 1 ) + T ( n − 1 , r ) ) = 2 n + r = 1 ∑ n − 2 T ( n − 1 , r ) + r = 2 ∑ n − 1 T ( n − 1 , r ) = 2 n + T ( n − 1 , 1 ) + T ( n − 1 , n − 1 ) + 2 r = 2 ∑ n − 2 T ( n − 1 , r ) = 2 n + T ( n − 1 , 1 ) + T ( n − 1 , n − 1 ) + 2 r = 1 ∑ n − 1 T ( n − 1 , r ) − 2 ( T ( n − 1 , 1 ) + T ( n − 1 , n − 1 ) ) = 2 n − 2 ( n − 1 ) + 2 R ( n − 1 ) = 2 + 2 R ( n − 1 )
so our conjecture does indeed hold. We can now just calculate the first twenty row sums, or solve the recurrence relation R ( n ) = 2 + 2 R ( n − 1 ) with the initial condition R ( 1 ) = 1 to get R ( n ) = 3 ⋅ 2 n − 1 − 2 and sum this geometric series.
Either way, we find the sum 3 1 4 5 6 8 5 .
In non-math language, consider the totals of the rows. Each term in the row feeds into two terms in the row below. Therefore the row sum doubles each row. EXCEPT, 1 is added to the 2 end terms. R(n)=2R(n−1)+1+1. But your proof is way better.
Log in to reply
Sure, a proof must be way better since the ones who will read them are those learned in the mathematical language. But what you wrote just sums it up for any interested layman's eyes and ears, just the way a science magazine journalist or my fun and open hs mathematics teacher works.
Ok let change it in binary. I have found a beautiful symmetry. I will right the sum of individual array in binary.
See,
1 = ( 1 ) 2 ,
2 + 2 = ( 1 0 0 ) 2 ,
4 + 3 + 4 = ( 1 0 1 0 ) 2 ,
4 + 7 + 7 + 4 = ( 1 0 1 1 0 ) 2 ,
5 + 1 1 + 1 4 + 1 1 + 5 = ( 1 0 1 1 1 0 ) 2 ,
6 + 1 6 + 2 5 + 2 5 + 1 6 + 6 = ( 1 0 1 1 1 1 0 ) 2 .
So, the inner 1 s are increasing with increase in the array.
Hence, S k = 2 n + 2 n − 1 − 2 , where S k is the sum of numbers of the k th row. Hence, Total sum is easy to find.
The sum of the full triangle with n rows is therefore A n = 2 n + 1 + 2 n − 2 n − 3 .
Put, n = 2 , A 2 = 5 ; n = 3 , A 3 = 1 5 ....so, the formula is perfect.
The binary expansions illustrate exactly what is going on.
The recursive expression for the sum of any given row is:
a 1 = 1
a n = a n − 1 + 3 ⋅ 2 n − 2
After a little work with Z-transform , one gets the general expression for a n :
a n = − 2 + 3 ⋅ 2 n − 1
So, we're looking for:
S = n = 1 ∑ 2 0 a n
S = − 2 n = 1 ∑ 2 0 1 + 2 3 n = 1 ∑ 2 0 2 n
S = − 4 0 + 2 3 ( 2 2 1 − 2 )
S = 3 1 4 5 6 8 5
A recursive formula for the sum in the n th row is given by a 1 = 1 a n + 1 = 2 a n + 2 Each number in row n is a Summand of two numbers in row n + 1 . Then add 1 for the left and right number.
Playing around with the therms and applying the identity ∑ i = 0 p 2 i = 2 p + 1 − 1 , we find a n = 2 n + 2 n + 1 − 2 and n = 1 ∑ k a n = 2 k + 1 + 2 k − 2 k − 3 and thus 2 2 1 + 2 2 0 − 2 ⋅ 2 0 − 3 = 3 1 4 5 6 8 5
Ha - between us we have a full solution :-).
You have written the solution incorrect. That is 2 k + 1 + 2 k − 2 k − 3 . You have written 2 k + 1 + 2 k + 2 k − 3 .
You say " a n + 1 = 2 n + 2 " You mean (since you say this is recursive) " a n + 1 = 2 a n + 2 "
Problem Loading...
Note Loading...
Set Loading...
Let us consider the sum of all numbers in k th row.
s 1 = 1 s 2 = 2 + 2 = 4 s 3 = 3 + 4 + 3 = 1 0 s 4 = 4 + 7 + 7 + 4 = 2 2 ⋯ = ⋯ ⟹ s 2 − s 1 = 3 ⟹ s 3 − s 2 = 6 ⟹ s 4 − s 3 = 1 2
We note that for k ≥ 1 ,
s k + 1 − s k k = 1 ∑ n ( s k + 1 − s k ) s n + 1 − s 1 ⟹ s n = 3 ( 2 k − 1 ) = k = 1 ∑ n 3 ( 2 k − 1 ) = 3 ( 2 n − 1 ) = 3 ( 2 n − 1 ) − 2
Then the sum of all numbers in a 20-row triangle is:
S = n = 1 ∑ 2 0 s n = n = 1 ∑ 2 0 ( 3 ( 2 n − 1 ) − 2 ) = 3 n = 0 ∑ 1 9 2 n − n = 1 ∑ 2 0 2 = 3 ( 2 − 1 2 2 0 − 1 ) − 2 ( 2 0 ) = 3 1 4 5 6 8 5