Imagine a pyramid made out of blocks, where the first layer has 1 block, the second layer is a 2 × 2 square made up of 4 blocks, the third layer is a 3 × 3 square made up of 9 blocks, and so on, so that each n th layer is a square made from n 2 blocks.
Each block has a number written on it. The top block has the number 1 written on it, but every other block has the sum of all the blocks that touch its top side written on it. The first five layers are as follows:
What number would be written on the block that is in the 3 rd column and 4 th row of the 1 0 0 th layer?
Note : This problem does not require a programming solution, although you may want to use a calculator for the last step!
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.
Shouldn't the first line in your proof by induction be A ( x , y , z + 1 ) = A ( x − 1 , y − 1 , z ) + A ( x , y − 1 , z ) + A ( x − 1 , y , z ) + A ( x , y , z ) ?
Log in to reply
Very well. I will fix it.
Log in to reply
Your proof by induction is much better than mine - nicely done! (I assume that ( k n ) when k < 0 and k > n is defined to be 0 .)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
|
1 2 |
|
Upvote here. Nice work Arjen!!
Is it just me or is there something i'm not getting. Each block can only have 4 blocks at most touching its top. If you are adding up all the blocks on top of the blocks that are touching then the examples are wrong. example 3 should have a 5 in the center if its a summation game as it would have all 4 blocks from layer 2 in direct contact with it plus the on block from layer 1 directly over it. Maybe its just me. wish i could have posted this query independently instead of on someones post but could figure out how.
Log in to reply
"... every other block has the sum of all the blocks that touch its top side"
I'd like to add that numbers on the blocks in the n-th layer are coefficients of the polynomial ( 1 + x ) n ( 1 + y ) n = ∑ i j C i j n x i y j .
Log in to reply
That is true; but how does it help in solving the problem?
It can proved inductively that the block in column c , row r , and layer n would have the number ( c − 1 n − 1 ) ( r − 1 n − 1 ) written on it (see proof below). Therefore, the block in column 3 , row 4 , and layer 1 0 0 would have the number ( 3 − 1 1 0 0 − 1 ) ( 4 − 1 1 0 0 − 1 ) = 7 6 0 8 7 4 4 9 9 written on it.
To prove that each block in column c , row r , and layer n would have the number ( c − 1 n − 1 ) ( r − 1 n − 1 ) written on it, we must examine each type of block, namely the non-edge blocks, the left edge blocks, the back edge blocks, the right edge blocks, the front edge blocks, and the corner blocks, and show that the equation holds for the first case and for each case after it.
The first non-edge block appears on layer n = 3 , column c = 2 , and row r = 2 , and is 4 , and ( 2 − 1 3 − 1 ) ( 2 − 1 3 − 1 ) = 4 . All non-edge blocks in layer n , column c , and row r are the sum of the 4 blocks above it, which is ( c − 1 n − 2 ) ( r − 1 n − 2 ) + ( c − 2 n − 2 ) ( r − 1 n − 2 ) + ( c − 1 n − 2 ) ( r − 2 n − 2 ) + ( c − 2 n − 2 ) ( r − 2 n − 2 ) , and simplifies (with some algebraic manipulation) to ( c − 1 n − 1 ) ( r − 1 n − 1 ) .
All left edge blocks are when c = 1 , and the first one appears on layer n = 3 , column c = 1 , and row r = 2 , and is 2 , and ( 1 − 1 3 − 1 ) ( 2 − 1 3 − 1 ) = 2 . All left edge blocks in layer n , column c , and row r are the sum of the 2 blocks above it, which is ( c − 1 n − 2 ) ( r − 1 n − 2 ) + ( c − 1 n − 2 ) ( r − 2 n − 2 ) , and also simplifies to ( c − 1 n − 1 ) ( r − 1 n − 1 ) .
All right edge blocks are when c = n , and the first one appears on layer n = 3 , column c = 3 , and row r = 2 , and is 2 , and ( 3 − 1 3 − 1 ) ( 2 − 1 3 − 1 ) = 2 . All right edge blocks in layer n , column c , and row r are the sum of the 2 blocks above it, which is ( c − 2 n − 2 ) ( r − 1 n − 2 ) + ( c − 2 n − 2 ) ( r − 2 n − 2 ) , and also simplifies to ( c − 1 n − 1 ) ( r − 1 n − 1 ) .
All back edge blocks are when r = 1 , and the first one appears on layer n = 3 , column c = 2 , and row r = 1 , and is 2 , and ( 2 − 1 3 − 1 ) ( 1 − 1 3 − 1 ) = 2 . All back edge blocks in layer n , column c , and row r are the sum of the 2 blocks above it, which is ( c − 1 n − 2 ) ( r − 1 n − 2 ) + ( c − 2 n − 2 ) ( r − 1 n − 2 ) , and also simplifies to ( c − 1 n − 1 ) ( r − 1 n − 1 ) .
All front edge blocks are when r = n , and the first one appears on layer n = 3 , column c = 2 , and row r = 3 , and is 2 , and ( 2 − 1 3 − 1 ) ( 3 − 1 3 − 1 ) = 2 . All front edge blocks in layer n , column c , and row r are the sum of the 2 blocks above it, which is ( c − 1 n − 2 ) ( r − 2 n − 2 ) + ( c − 2 n − 2 ) ( r − 2 n − 2 ) , and also simplifies to ( c − 1 n − 1 ) ( r − 1 n − 1 ) .
All the corner blocks are equal to the one block above it, which is always 1 , and for each corner case (when c = 1 and r = 1 , when c = 1 and r = n , when c = n and r = 1 , and when c = n and r = n ), the first ones appear on layer n = 2 , and ( 1 − 1 2 − 1 ) ( 1 − 1 2 − 1 ) = 1 , ( 1 − 1 2 − 1 ) ( 2 − 1 2 − 1 ) = 1 , ( 2 − 1 2 − 1 ) ( 1 − 1 2 − 1 ) = 1 , and ( 2 − 1 2 − 1 ) ( 2 − 1 2 − 1 ) = 1 . Also, for each corner case, ( c − 1 n − 1 ) ( r − 1 n − 1 ) = 1 .
Therefore, each block in column c , row r , and layer n would have the number ( c − 1 n − 1 ) ( r − 1 n − 1 ) written on it.
Nice problem and solution.
You might notice that the first row and the first column of the n th layer is the n th row in Pascal's Triangle .
We can also observe that the point at coordinates ( i , j ) on the n th layer is ( l 1 , j ) ⋅ ( l i , 1 ) , whereas l is the layer represented using matrix notation .
Therefore, a general formula for the 3 rd column and the 4 th row must be P n ( 3 ) ⋅ P n ( 4 ) , where P a ( b ) represents the b th element of the a th row in Pascal's triangle. Now we know that Pascal's triangle is the table of binomial coefficients between its row indices and its column indices, namely ( c r ) for the r th row and the c th column.
That being said, we ought to find ( 4 − 1 1 0 0 − 1 ) ⋅ ( 3 − 1 1 0 0 − 1 ) = 7 6 0 8 7 4 4 9 9 .
Extra: The sequence of numbers on the 3 rd column and 4 th row is listed in OEIS A004282 .
Notice that the numbers along the n'th edge of a layer are of the form
1 x (n-1) x (n-2)/2 x ... x (n-i)/i on the i'th place from the corners (symmetrical from both sides),
n > 2; i < n.
Notice also that the elements in layer n in the i'th row and the j'th column just are the product of the i'th and j'th edge values
In layer 100 the 3rd edge element is therefore 1 x 99 x 98/2 = 4.851 and the 4th edge element is 1 x 99 x 98/2 x 97/3 = 156.849
The (3, 4)th element in layer 100 is therefore 4.851 x 156.849 = 760.874.499
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
|
``` Partial Layout of layer 100 [156849 * 4851 = 760874499]
000001, 99, 4851, 000000156849,
000099, ..... , ......., ......................,
004851, ....., ......., ......................,
156849, ....., 760874499, .........., `
Didn't the question say there is no need to use programming... No points to you.
Log in to reply
It is not required, but not disallowed - @Frank Petiprin is allowed his points!
The number in the 3rd column 4th row (or 4th column and 3rd row) is the product of the 3rd and 4th numbers in the 1st row. The 3rd number is 2 less than the layer number triangulated (98 x 49.5=4851). The 4th number is the sum of all the 3rd numbers in the previous layers. So (97 x 1)+(96 x 2)+(95 x 3) ... (3 x 95)+(2 x 96)+(1 x 97)=156849. The answer is 156849 x 4851=760874499
For row x, column y, and layer z, it is simply ( x − 1 z − 1 ) ( y − 1 z − 1 ) When the variables are plugged in, we get \({99 \choose 2} ) ( 3 9 9 ) , which equals our answer, 760874499.
My solution was to have my friend go on his computer and tell me all the answers 🤣
Problem Loading...
Note Loading...
Set Loading...
Let A ( x , y , z ) be the number in column x , row y of layer z . Then A ( x , y , z ) = ( x − 1 z − 1 ) ( y − 1 z − 1 ) . It follows then that A ( 3 , 4 , 1 0 0 ) = ( 2 9 9 ) ( 3 9 9 ) = 2 ⋅ 6 9 9 ⋅ 9 8 ⋅ 9 9 ⋅ 9 8 ⋅ 9 7 = 3 3 ⋅ 4 9 ⋅ 9 9 ⋅ 9 8 ⋅ 9 7 = 7 6 0 8 7 4 4 9 9 .
The idea for this solution comes from observing that the rule for determining the numbers is a 3D-version of the rule for Pascal's triangle.
In fact, the pyramid is the product, both geometrically and numerically, of two copies of Pascal's triangle.
Proof by induction : Suppose the statement holds true for all blocks in layer z . Then we are told that A ( x , y , z + 1 ) = A ( x − 1 , y − 1 , z ) + A ( x − 1 , y , z ) + A ( x , y − 1 , z ) + A ( x , y , z ) ; with the induction assumption, A ( x , y , z + 1 ) = ( x − 2 z − 1 ) ( y − 2 z − 1 ) + ( x − 1 z − 1 ) ( y − 2 z − 1 ) + ( x − 2 z − 1 ) ( y − 1 z − 1 ) + ( x − 1 z − 1 ) ( y − 1 z − 1 ) = { ( x − 2 z − 1 ) + ( x − 1 z − 1 ) } { ( y − 2 z − 1 ) + ( y − 1 z − 1 ) } , which with the familiar addition property of binomial coefficients becomes = ( x − 1 z ) ( y − 1 z ) .