A tromino is an L-shaped tile consisting of three unit squares arranged as shown in the figure below.
Consider a 2 0 1 3 × 2 0 1 3 chessboard whose cells are colored black and white alternatively, with the four corners colored black. Find the last three digits of the minimum number of non-overlapping trominoes needed to cover all the black cells.
Details and assumptions
Two trominoes are called non-overlapping if they share no common cell.
Here's an example of a 3 × 3 chessboard with its cells colored black and white alternatively.
There's no restriction on whether a tromino can be placed on a white cell.
If the last three digits are ⋯ 0 1 2 , enter 12 as your answer.
This problem is not original.
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.
First of all let me start by saying that it took me a lot of trial and errorand case checking to solve this problem.
Our goal in this problem is to cover all of the black squares 2 0 1 3 × 2 0 1 3 chessboard with the minimum number of triminoes.
In the question it states that our black squares are in the corner. It may not seem like an important detail but actually it specifies the actual number of black squares on the board. Let's the image of the 3 × 3 chessboard again.
You can see that there is one black square more than the white ones. This true for any n × n chessboard where n is an odd number and the black squares are on the corner. So, the number of black squares on a ( 2 m + 1 ) × ( 2 m + 1 ) chessboard is equal to ⌊ 2 ( 2 ∗ m + 1 ) 2 ⌋ = ( m + 1 ) 2 .
So, our 2 0 1 3 × 2 0 1 3 chessboard there are 2 0 1 4 2 black squares.
Now, since we have the basics covered lets approach the problem in a simple way. at first when I approached this problem I had no idea how to start. And when you don't know how to start just consider a simpler case and play around with it. Experiment with it as long as you like. So, what is simpler than a 2 0 1 3 × 2 0 1 3 chessboard? A 3 × 3 chessboard! So, I drew a 3 × 3 board with black squares on the corner and tried to cover it with imaginary triminoes. And after a few seconds it became clear that it is impossible to cover it with non over lapping triminoes. Same, goes for a 5 × 5 chessboard.[At this point I just gave the answer 0 and they said that it was wrong!]
Then, I focused on 7 × 7 chessboard and finally I found that we can cover all the black squares with 1 6 non-overlapping triminoes if the black squares were in the corners. I figured that with 2 non over lapping triminoes I can make a 2 × 3 rectangle and with one I can make a shape that is not a 2 × 2 square but they can cover the same number of black squares as a 2 × 2 square can.
And, I divided the 7 × 7 chessboard according to the following picture:
That way I could easily cover all the black squares and that required the minimum number of triminoes.
So, I made a conjecture that for any odd n > 5 the minimum number of triminoes required to cover its black squares if the corner square was black equaled to 4 ( n + 1 ) 2 .
Since, I proved my conjecture for 7 my base case was already proved. Then, I assumed that it was true for some odd positive integer k .
So, now my goal is to prove that it is true for k + 2 . See this image:
We can divide a ( k + 2 ) × ( k + 2 ) into a k × k , a ( k + 2 ) × 2 and a k × 2 board as the image.
Now each of the rectangles can be covered with the shapes that we talked about. We can cover all the black squares of the k × 2 rectangle with 2 ( k − 3 ) triminoes and one 3 × 2 rectangle. So, the minimum number of triminoes required to cover that is 2 ( k − 3 ) + 2 .
Similarly, we can divide ( k + 2 ) × 2 rectangle into a 2 × k rectangle and a 2 × 2 squares. The minimum numbers of triminoes required to cover the black squares of this is 2 ( k − 3 ) + 2 + 2 .
So, the minimum number of non- overlapping trimonoes required to cover all the black squares where the corner squares are black ( k + 2 ) × ( k + 2 ) board is equal to 4 ( k + 1 ) 2 + 2 ( k − 3 ) + 2 + 2 ( k − 3 ) + 2 + 2 = 4 ( k + 3 ) 2 .
So, the minimum number of non-overlapping triminoes required to cover our board is 4 ( 2 0 1 3 + 1 ) 2 = 1 0 0 7 2 .
Now, 1 0 0 7 ≡ 7 m o d 1 0 0 0
So, 1 0 0 7 2 ≡ 4 9 m o d 1 0 0 0 .
So, the answer is 4 9 .
Nice! I really appreciate the time and effort you have put in writing your solution. :)
It's 1007*1005+2014=1014049..It's really very easy..
Problem Loading...
Note Loading...
Set Loading...
We divide the set of black squares in two subsets, one with the black squares on a even row and other with the black squares on a odd row. Then we can see that a triminoe can't cover two black squares of the same subset. The greater subset is the one made with the odd rows and it has 1007^2 black squares. We can see making a small example that we can cover all the black squares of the other subset using triminoes that also cover black squares of the greater subset. So the solution is 1007^2 (mod 1000) = 49