Palindromes on a chessboard

Level 2

Take a standard chessboard, and number the black squares 1 and the red squares 0, as shown.

How many palindromes does this board contain in 'word-search' fashion?

Details and Assumptions:

  • A palindrome and its reversal should not be counted twice.
  • Each instance of a number should be counted separately.
  • A palindrome can be one-digit long, but zero and numbers with leading zeros are not allowed.
  • Numbers can be read along any single line vertically, horizontally, or diagonally.


The answer is 268.

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.

1 solution

Jeremy Galvagni
Apr 8, 2018

6 16 + 2 ( 1 + 3 + 6 + 10 + 15 + 21 ) + 28 + 32 = 268 6*16+2(1+3+6+10+15+21) + 28 + 32 = 268

Don't count the single 1's until the very end to avoid overcounting them.

Every horizontal row and every vertical column has has 6: three 101, two 10101, one 1010101: 6 16 = 96 6*16=96

Diagonals with zeros have none

Diagonals with n 1's have n(n-1)/2. For example 1111 has 6: three 11, two 111, one 1111.

There are two diagonals each of length 2 to 7: 2 ( 1 + 3 + 6 + 10 + 15 + 21 ) = 112 2(1+3+6+10+15+21)=112

and a single diagonal of length 8: 28 28

Finally add in the 32 single 1's: 32 32

96 + 112 + 28 + 32 = 268 96+112+28+32=\boxed{268}

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...