I have a n x m matrix containing alternative black and white cells(like a chessboard) and a constant c which is 0 if the bottom right corner is black, and 1, if it is white.
And I am having trouble figuring out how many 8×8 different boards with a white bottom right corner can be found on a n x m matrix.
I was thinking I should start with the bottom right corner and check its color. If it is white, then I have a good case (n>8 && m>8), but i don't know how to impose the 8 x 8 condition.