Arithmetic Triangle

1 2 2 3 4 3 4 7 7 4 5 11 14 11 5 6 16 25 25 16 6 \begin{array}{ccccccccccc} \\ & & & & & 1 \\ & & & & 2 & & 2 \\ & & & 3 & & 4 & & 3 \\ & & 4 & & 7 & & 7 & & 4 \\ & 5 & & 11 & & 14 & & 11 & & 5 \\ 6 & & 16 & & 25 & & 25 & & 16 & & 6 \end{array}

If we form a number triangle as above, what is the sum of all the numbers in the triangle with 20 rows?


The answer is 3145685.

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.

6 solutions

Chew-Seong Cheong
Oct 31, 2019

Let us consider the sum of all numbers in k k th row.

s 1 = 1 s 2 = 2 + 2 = 4 s 2 s 1 = 3 s 3 = 3 + 4 + 3 = 10 s 3 s 2 = 6 s 4 = 4 + 7 + 7 + 4 = 22 s 4 s 3 = 12 = \begin{array} {ll} s_1 = 1 \\ s_2 = 2+2 = 4 & \implies s_2 - s_1 = 3 \\ s_3 = 3+4+3 = 10 & \implies s_3 - s_2 = 6 \\ s_4 = 4+7+7+4 = 22 & \implies s_4 - s_3 = 12 \\ \cdots = \cdots \end{array}

We note that for k 1 k \ge 1 ,

s k + 1 s k = 3 ( 2 k 1 ) k = 1 n ( s k + 1 s k ) = k = 1 n 3 ( 2 k 1 ) s n + 1 s 1 = 3 ( 2 n 1 ) s n = 3 ( 2 n 1 ) 2 \begin{aligned} s_{k+1} - s_k & = 3(2^{k-1}) \\ \sum_{k=1}^n \left(s_{k+1} - s_k\right) & = \sum_{k=1}^n 3(2^{k-1}) \\ s_{n+1} - s_1 & = 3\left(2^n-1\right) \\ \implies s_n & = 3\left(2^{n-1}\right) - 2 \end{aligned}

Then the sum of all numbers in a 20-row triangle is:

S = n = 1 20 s n = n = 1 20 ( 3 ( 2 n 1 ) 2 ) = 3 n = 0 19 2 n n = 1 20 2 = 3 ( 2 20 1 2 1 ) 2 ( 20 ) = 3145685 \begin{aligned} S & = \sum_{n=1}^{20} s_n = \sum_{n=1}^{20} \left(3\left(2^{n-1}\right) - 2\right) = 3 \sum_{n=0}^{19} 2^n - \sum_{n=1}^{20} 2 \\ & = 3 \left(\frac {2^{20}-1}{2-1}\right) - 2(20) = \boxed{3145685} \end{aligned}

Nico answero. Thank you.

Alexander Shannon - 1 year, 7 months ago

Log in to reply

Glad that you like it. No upvote?

Chew-Seong Cheong - 1 year, 7 months ago

Log in to reply

Why not :) Upvoto, per requesto.

Alexander Shannon - 1 year, 7 months ago
Zhang Xiaokang
Dec 4, 2019

Bears some semblance to matrices... Note: continue to row 20

A = S 2 S 1 = n = 2 21 ( 2 n 2 ) n = 0 19 2 n = 3145685 A = S_{2} - S_{1} = \sum_{n=2}^{21} (2^{n} - 2) - \sum_{n=0}^{19} 2^{n} = \boxed{3145685}

Chris Lewis
Oct 31, 2019

The triangle is "Pascal-like": the elements at the ends of row n n have value n 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 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 , 10 , 22 , 46 , 94 , 1,4,10,22,46,94,\ldots . A bit of pattern-spotting leads us to conjecture that each row sum is 2 2 more than twice the previous one - 10 = 2 + 2 × 4 10=2+2\times 4 , 22 = 2 + 2 × 10 22=2+2\times 10 , 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 r^{th} element of the n t h n^{th} row is T ( n , r ) T(n,r) , where 1 r n 1\leq r \leq 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 T(n,1)=T(n,n)=n and T ( n , r ) = T ( n 1 , r 1 ) + T ( n 1 , r ) T(n,r)=T(n-1,r-1)+T(n-1,r) for 2 r n 1 2\leq r \leq n-1 .

Let R ( n ) = r = 1 n T ( n , r ) R(n)=\sum_{r=1}^n T(n,r) be the n t h n^{th} 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 ) \begin{aligned} R(n) &=\sum_{r=1}^n T(n,r)\\ &=T(n,1)+\left[ \sum_{r=2}^{n-1} T(n,r) \right]+T(n,n)\\ &=2n+\sum_{r=2}^{n-1} (T(n-1,r-1)+T(n-1,r))\\ &=2n+\sum_{r=1}^{n-2} T(n-1,r)+\sum_{r=2}^{n-1} T(n-1,r)\\ &=2n+T(n-1,1)+T(n-1,n-1) + 2\sum_{r=2}^{n-2} T(n-1,r)\\ &=2n+T(n-1,1)+T(n-1,n-1) + 2\sum_{r=1}^{n-1} T(n-1,r) - 2(T(n-1,1)+T(n-1,n-1))\\ &=2n-2(n-1) + 2R(n-1)\\ &=2+2R(n-1) \end{aligned}

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 ) R(n)=2+2R(n-1) with the initial condition R ( 1 ) = 1 R(1)=1 to get R ( n ) = 3 2 n 1 2 R(n)=3\cdot 2^{n-1} - 2 and sum this geometric series.

Either way, we find the sum 3145685 \boxed{3145685} .

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.

Max Patrick - 1 year, 7 months ago

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.

Saya Suka - 6 months ago
Alapan Das
Oct 31, 2019

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 1=(1)_2 ,

2 + 2 = ( 100 ) 2 2+2=(100)_2 ,

4 + 3 + 4 = ( 1010 ) 2 4+3+4=(1010)_2 ,

4 + 7 + 7 + 4 = ( 10110 ) 2 4+7+7+4=(10110)_2 ,

5 + 11 + 14 + 11 + 5 = ( 101110 ) 2 5+11+14+11+5=(101110)_2 ,

6 + 16 + 25 + 25 + 16 + 6 = ( 1011110 ) 2 6+16+25+25+16+6=(1011110)_2 .

So, the inner 1 1 s are increasing with increase in the array.

Hence, S k = 2 n + 2 n 1 2 S_k=2^n+2^{n-1}-2 , where S k S_k is the sum of numbers of the k k th row. Hence, Total sum is easy to find.

The sum of the full triangle with n n rows is therefore A n = 2 n + 1 + 2 n 2 n 3 A_n=2^{n+1}+2^n-2n-3 .

Put, n = 2 , A 2 = 5 n=2, A_2=5 ; n = 3 , A 3 = 15 n=3, A_3=15 ....so, the formula is perfect.

The binary expansions illustrate exactly what is going on.

Richard Desper - 1 year, 7 months ago
Guilherme Niedu
Oct 31, 2019

The recursive expression for the sum of any given row is:

a 1 = 1 \large \displaystyle a_1 = 1

a n = a n 1 + 3 2 n 2 \large \displaystyle a_n = a_{n-1} + 3\cdot 2^{n-2}

After a little work with Z-transform , one gets the general expression for a n a_n :

a n = 2 + 3 2 n 1 \color{#20A900} \boxed{ \large \displaystyle a_n = -2 + 3\cdot 2^{n-1}}

So, we're looking for:

S = n = 1 20 a n \large \displaystyle S = \sum_{n=1}^{20} a_n

S = 2 n = 1 20 1 + 3 2 n = 1 20 2 n \large \displaystyle S = -2\sum_{n=1}^{20} 1 + \frac32 \sum_{n=1}^{20} 2^n

S = 40 + 3 2 ( 2 21 2 ) \large \displaystyle S = -40 + \frac32 (2^{21} - 2)

S = 3145685 \color{#3D99F6} \boxed{ \large \displaystyle S = 3145685}

Simon Kaib
Oct 31, 2019

A recursive formula for the sum in the n n th row is given by a 1 = 1 a n + 1 = 2 a n + 2 a_1 = 1 \\ a_{n+1}=2a_n+2 Each number in row n n is a Summand of two numbers in row n + 1 n+1 . Then add 1 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 \sum_{i=0}^p 2^i= 2^{p+1}-1 , we find a n = 2 n + 2 n + 1 2 a_n=2^n+2^{n+1}-2 and n = 1 k a n = 2 k + 1 + 2 k 2 k 3 \sum_{n=1}^ka_n=2^{k+1}+2^k-2k-3 and thus 2 21 + 2 20 2 20 3 = 3145685 \boxed{2^{21}+2^{20}-2\cdot 20-3=3145685}

Ha - between us we have a full solution :-).

Chris Lewis - 1 year, 7 months ago

You have written the solution incorrect. That is 2 k + 1 + 2 k 2 k 3 2^{k+1}+2^k-2k-3 . You have written 2 k + 1 + 2 k + 2 k 3 2^{k+1}+2^k+2k-3 .

Alapan Das - 1 year, 7 months ago

Log in to reply

Thanks, corrected the typo

Simon Kaib - 1 year, 7 months ago

You say " a n + 1 = 2 n + 2 a_{n+1} = 2n+2 " You mean (since you say this is recursive) " a n + 1 = 2 a n + 2 a_{n+1} = 2a_n + 2 "

Richard Desper - 1 year, 7 months ago

Log in to reply

Whoops, thanks. Corrected.

Simon Kaib - 1 year, 7 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...