how many: squares on 8-by-8 board, paths from A to B

mel757

New member
Joined
Jan 10, 2008
Messages
4
a. how many sqaures of all sizes are there on the 8x8 checkerboard

would it just be 64?

b. how many paths are there from point A to point B in a geometric figure. the figure frm left (point A) to right (point B) has six squares adjacent to each other. in each sqaure 2 right triangles can be formed. on each side of the sqaures is an arrow indicating direction. the top of the figure has the arrows going right. the bottom has arrows going right. on the left side of the sqaures, the arrows are going up. the middle of the square (which creates the triangles has the arrows going downwards)
 
Re: question

mel757 said:
how many sqaures of all sizes are there on the 8x8 checkerboard

would it just be 64?

No - there would be 64 squares of size 1x1 - in addition there are squares of size 8x8(1of those), 4x4(16 of those), and so on.

how many paths are there from point A to point B in a geometric figure. the figure frm left (point A) to right (point B) has six squares adjacent to each other. in each sqaure 2 right triangles can be formed. on each side of the sqaures is an arrow indicating direction. the top of the figure has the arrows going right. the bottom has arrows going right. on the left side of the sqaures, the arrows are going up. the middle of the square (which creates the triangles has the arrows going downwards)
 
how many sqaures of all sizes are there on the 8x8 checkerboard

Lets look at squares first to show you the process.

If you determine the number of squares on smaller boards starting with one square you will readily discover a pattern that leads to a simple formula for a board of any number of squares.
A one square board obviously has only one square.
A 2x2 square board has 5 squares, the 4 basic ones and the one large 2x2 one.
A 3x3 square board has 14 squares, the smaller 9 plus 4 2x2's plus 1 3x3 one.
A 4x4 square board has 30 squares, the smaller 16 plus 9 3x3's, plus 4 2x2's plus 1 4x4 one.
Are you beginning to see the pattern?
1x1 - 1^2 = 1
2x2 - 2^2 + 1^2 = 5.
3x3 - 3^2 + 2^2 + 1^2 = 14.
4x4 - 4^2 + 3^2 + 2^2 + 1^2 = 30.
5x5 - 5^2 + 4^2 + 3^2 + 2^2 + 1^1 = 55.

What would your guess be for the number of squares on an 8 x 8 board? Can you derive a general expression for the answer?

Here it is. Let N(s)n = the total number of squares in a square of nxn squares. Then

N(s)n = n^2 + (n-1)^2 + (n-2)^2................(n-n+1)^2 = n(n + 1)(2n + 1)/6
.

So for the typical chess board problem with 8x8 squares, the total number of definable squares is

N(s)8 = 8(8 + 1)(16 + 1)/6 = 204


Now for how many rectangles there are in a square nxn squares big? We count only "rectangles", not the squares which are special cases of rectangles. Remember, only rectangles where the length is longer than the width.

Again, the best way to creep up on a solution is to start out with the small size squares and see where it leads you. For a 2x2 square, we have a total of 4 possible rectangles, each 1x2. For the 3x3 square, we can find 12 1x2 rectangles, 6 1x3 rectangles, and 4 2x3 rectangles for a total of 22. For the 4x4 square, we can find 24 1x2's, 16 1x3's, 8 1x4's, 12 2x3's, 6 2x4's, and 4 3x4's for a total of 70 rectangles. For the 5x5 square, we get 40 1x2's, 30 1x3's, 20 1x4's, 10 1x5's, 24 2x3's, 16 2x4's, 8 2x5's, 12 3x4's, 6 3x5's, and 4 4x5's.
Did you notice anything as you looked through these numbers? Lets put them into a tabular form. Along side each nxn square will be the number of rectangles identified at the top of the column.

1x2 1x3 1x4 1x5 2x3 2x4 2x5 3x4 3x5 4x5 Total
2x2 4 4
3x3 12 6 4 22
4x4 24 16 8 12 6 4 70
5x5 40 30 20 10 24 16 8 12 6 4 170

NOTICE ANYTHING???

1--The number of 1 square wide rectangles in each case is equal to n^2(n-1).
2--The number of 2 square wide rectangles in each case is equal to the number of 1 square wide rectangles in the previous case. The number of 3 square wide rectangles in each case is equal to the number of 2 square wide rectangles in the previous case.
The total number of rectangles in a square of nxn squares is equal to the sum of the 1 square wide rectangles for each rectangle from the 2x2 up to and including the nxn one being considered. Thus, the number of rectangles in a 5x5 square is the sum of the 1 square wide rectangles in the 1x1, 2x2, 3x3, 4x4, and 5x5 squares or 4 + 18 + 48 + 100 = 170. Therefore, for the typical chess board problem of 8x8 squares, we have a total of 4 + 18 + 48 + 100 + 180 + 294 + 448 = 1092.

Letting N(r)n = the total number of rectangles in a square of nxn squares, we have

N(r)8 = n(3n^3 + 2n^2 - 3n - 2)/12 = 8[3(512) + 2(64) - 3(8) - 8]/12 = 1092.

If you want to derive the total number of squares and rectangles, then the total on an 8x8 checkerboard would be 204 + 1092 for a total of 1296, the square of 36.

Letting N(s,r)n = the total number of squares and rectangles in a square of nxn squares, we have

N(s,r)n = n(n + 1)(2n + 1)/6 + n(3n^3 + 2n^2 - 3n - 2)/12 = [(n^2 + n)^2]/4

For our 8x8 board, N(s,r)8 = [(n^2 + n)^2]/4 = [(64 + 8)^2]/4 = 1296
 
Top