WalzoneInterview Prep
📞 Interviewing soon? Practice with a realistic AI mock phone interview — it calls you, then scores you. First 15 min FREE →

Wall Street Quant · Puzzles & Problems · question 10 of 155

How many squares (of all sizes) are there in an 8x8 chessboard?

📕 Buy this interview preparation book: 155 Wall Street Quant questions & answers — PDF + EPUB for $5

To find out the number of squares of all sizes in an 8x8 chessboard, we need to count the number of squares of each size and then sum them up.

A chessboard has squares of different sizes, ranging from 1x1 to 8x8. To find out the number of squares of a specific size, let’s say it’s n x n, we can use this formula:

Number of n x n squares in an 8x8 chessboard = (8 - n + 1) * (8 - n + 1)

Now, let’s calculate the number of squares of each size in the chessboard:

1. For 1x1 squares:

(8 - 1 + 1) * (8 - 1 + 1) = 8 * 8 = 64 squares

2. For 2x2 squares:

(8 - 2 + 1) * (8 - 2 + 1) = 7 * 7 = 49 squares

3. For 3x3 squares:

(8 - 3 + 1) * (8 - 3 + 1) = 6 * 6 = 36 squares

4. For 4x4 squares:

(8 - 4 + 1) * (8 - 4 + 1) = 5 * 5 = 25 squares

5. For 5x5 squares:

(8 - 5 + 1) * (8 - 5 + 1) = 4 * 4 = 16 squares

6. For 6x6 squares:

(8 - 6 + 1) * (8 - 6 + 1) = 3 * 3 = 9 squares

7. For 7x7 squares:

(8 - 7 + 1) * (8 - 7 + 1) = 2 * 2 = 4 squares

8. For 8x8 squares:

(8 - 8 + 1) * (8 - 8 + 1) = 1 * 1 = 1 square

Now, let’s add up the number of squares of each size:

Total squares = 64 + 49 + 36 + 25 + 16 + 9 + 4 + 1 = 204 squares

So, there are 204 squares of all sizes in an 8x8 chessboard.

Reading is step one. Saying it out loud is the interview. Our AI interviewer calls your phone and runs a realistic Wall Street Quant interview — then scores it.
📞 Practice Wall Street Quant — free 15 min
📕 Buy this interview preparation book: 155 Wall Street Quant questions & answers — PDF + EPUB for $5

All 155 Wall Street Quant questions · All topics