We have a normal chessboard (i.e. containing 64 cells, 8 by 8). On each cell of this board is written a number equal to the amount of rectangles (squares included) containing that cell. Find the sum of all the numbers.
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.
First, define R as the set of all rectangles and C as the set of all cells. Then note that every rectangle R ∈ R can be identified as R = [ L , U ] where L , U ∈ C are respectively the lower-left and upper-right cells of R . Also, every cell c ∈ C can be identified by its coordinates ( c x , c y ) on the board, where 1 ≤ c x , c y ≤ 8 .
Then, c ∈ C ∑ ∣ ∣ ∣ { R ∈ R : R contains c } ∣ ∣ ∣ = ∣ ∣ ∣ { ( R , c ) ∈ R × C : R contains c } ∣ ∣ ∣ = ∣ ∣ ∣ { ( L , U , c ) ∈ C 3 : L x ≤ c x ≤ U x , L y ≤ c y ≤ U y } ∣ ∣ ∣ = ∣ ∣ ∣ { L x , L y , U x , U y , c x , c y ∈ Z : 1 ≤ L x ≤ c x ≤ U x ≤ 8 , 1 ≤ L y ≤ c y ≤ U y ≤ 8 } ∣ ∣ ∣ = ∣ ∣ ∣ { a , b , c ∈ Z : 1 ≤ a ≤ b ≤ c ≤ 8 } ∣ ∣ ∣ 2 = ∣ ∣ ∣ { a , b , c ∈ Z : 0 ≤ a − 1 < b < c + 1 ≤ 9 } ∣ ∣ ∣ 2 = ∣ ∣ ∣ { S ⊂ { 0 , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 } : ∣ S ∣ = 3 } ∣ ∣ ∣ 2 = ( 3 1 0 ) 2 = 1 2 0 2 = 1 4 4 0 0
Further commentary:
Problem Loading...
Note Loading...
Set Loading...
Consider the cell with coordinates ( x , y ) (for 1 ≤ x , y ≤ 8 ). A rectangle containing that cell will extend from column u to column v , and from row p to row q , where 1 ≤ u ≤ x ≤ v ≤ 8 and 1 ≤ p ≤ y ≤ q ≤ 8 . Thus there are x ( 9 − x ) ways of choosing u , v , and y ( 9 − y ) ways of choosing ( p , q ) . Thus the number in this cell will be x ( 9 − x ) y ( 9 − y ) . Thus we want to evaluate N = x , y = 1 ∑ 8 x ( 9 − x ) y ( 9 − y ) = ( n = 1 ∑ 8 x ( 9 − x ) ) 2 = ( 9 × 2 1 × 8 × 9 − 6 1 × 8 × 9 × 1 7 ) 2 = 1 2 0 2 = 1 4 4 0 0