A chessboard problem

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.


The answer is 14400.

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.

2 solutions

Mark Hennings
Aug 2, 2018

Consider the cell with coordinates ( x , y ) (x,y) (for 1 x , y 8 1 \le x,y \le 8 ). A rectangle containing that cell will extend from column u u to column v v , and from row p p to row q q , where 1 u x v 8 1 \le u \le x \le v \le 8 and 1 p y q 8 1 \le p \le y \le q \le 8 . Thus there are x ( 9 x ) x(9-x) ways of choosing u , v u,v , and y ( 9 y ) y(9-y) ways of choosing ( p , q ) (p,q) . Thus the number in this cell will be x ( 9 x ) y ( 9 y ) 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 × 1 2 × 8 × 9 1 6 × 8 × 9 × 17 ) 2 = 12 0 2 = 14400 N \; = \; \sum_{x,y=1}^8 x(9-x)y(9-y) \; = \; \left(\sum_{n=1}^8x(9-x)\right)^2 \; = \; \left(9 \times \tfrac12\times8\times9 - \tfrac16\times8\times9\times17\right)^2 \; = \; 120^2 \; = \; \boxed{14400}

Brian Moehring
Aug 2, 2018

First, define R \mathcal{R} as the set of all rectangles and C \mathcal{C} as the set of all cells. Then note that every rectangle R R R \in \mathcal{R} can be identified as R = [ L , U ] R = [L,U] where L , U C L,U \in \mathcal{C} are respectively the lower-left and upper-right cells of R R . Also, every cell c C c \in \mathcal{C} can be identified by its coordinates ( c x , c y ) (c_x,c_y) on the board, where 1 c x , c y 8. 1\leq c_x,c_y \leq 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 = ( 10 3 ) 2 = 12 0 2 = 14400 \begin{aligned} \sum_{c \in \mathcal{C}} \Big|\{R \in \mathcal{R} : R \text{ contains } c\}\Big| &= \Big|\{(R,c) \in \mathcal{R}\times\mathcal{C}: R \text{ contains } c\}\Big| \\ &= \Big|\{(L,U,c) \in \mathcal{C}^3 : L_x \leq c_x \leq U_x, L_y \leq c_y \leq U_y\}\Big| \\ &= \Big|\{L_x,L_y,U_x,U_y,c_x,c_y \in \mathbb{Z} : 1\leq L_x \leq c_x \leq U_x\leq 8, 1\leq L_y \leq c_y \leq U_y\leq 8\}\Big| \\ &= \Big|\{a,b,c \in \mathbb{Z} : 1\leq a\leq b\leq c\leq 8\}\Big|^2 \\ &= \Big|\{a,b,c \in \mathbb{Z} : 0\leq a-1 < b < c+1 \leq 9\}\Big|^2 \\ &= \Big|\big\{S\subset \{0,1,2,3,4,5,6,7,8,9\} : |S| = 3\big\}\Big|^2 \\ &= \binom{10}{3}^2 = 120^2 = \boxed{14400} \end{aligned}


Further commentary:

  • While I haven't explicitly shown it as a combinatorial proof, I've shown a lot of steps here for the sole purpose that a combinatorial proof is evident. That is, c C { R R : R contains c } = { ( R , c ) R × C : R contains c } \sum_{c \in \mathcal{C}} \Big|\{R \in \mathcal{R} : R \text{ contains } c\}\Big| = \Big|\{(R,c) \in \mathcal{R}\times\mathcal{C}: R \text{ contains } c\}\Big| is just the combinatorial definition for the sum, and { S { 0 , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 } : S = 3 } = ( 10 3 ) \Big|\big\{S \subset \{0,1,2,3,4,5,6,7,8,9\} : |S| = 3\big\}\Big| = \binom{10}{3} is just the combinatorial definition of the binomial coefficient. Also, if you analyze the intermediate steps, what I actually give is a bijection f : { ( R , c ) R × C : R contains c } { S { 0 , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 } : S = 3 } 2 f : \{(R,c) \in \mathcal{R}\times\mathcal{C}: R \text{ contains } c\} \to \big\{S \subset \{0,1,2,3,4,5,6,7,8,9\} : |S| = 3\big\}^2 defined by f ( [ L , U ] , c ) = ( { L x 1 , c x , U x + 1 } , { L y 1 , c y , U y + 1 } ) f\Big([L,U],c\Big) = \Big(\{L_x-1, c_x,U_x+1\}, \{L_y-1, c_y, U_y+1\}\Big)
  • The notation R = [ L , U ] R = [L,U] may look weird, maybe even look like an abuse of notation, but it actually can be completely justified if you recognize we can partially order C \mathcal{C} by c d c x d x and c y d y c \preceq d \iff c_x\leq d_x \text{ and } c_y \leq d_y . Then the rectangles on the board are exactly the closed intervals under \preceq , and in fact R = [ L , U ] C . R = [L,U]_{\preceq} \subseteq \mathcal{C}.

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...