Battleship placement proving that the number of battleships is divisible by 3 We have a grid of 6 c

gvaldytist

gvaldytist

Answered question

2022-06-25

Battleship placement proving that the number of battleships is divisible by 3
We have a grid of 6 columns and x number of rows. All battleships are three units long and can be placed like this: 1 or like this: 2
Where the entire grid is filled with ships with no square units left unfilled, I'm interested in showing that the number of ships positioned as seen in (2) must be divisible by 3; the number of ships placed upright is divisible by 3.
I noticed that the restriction on the number of columns to be 6 means that each column can only have up to two of the ships of type (1), I can show that the number of square units remaining is divisible by 3 but I know that this does not imply the actual number of ships is divisible by 3.

Answer & Explanation

stigliy0

stigliy0

Beginner2022-06-26Added 21 answers

Step 1
Say the rows are numbered from 1 to x, and rows numbered 1 , 4 , 7 , 10 , , 4 k + 3 , are all colored black. Each vertical ship touches exactly one black row. Furthermore, the number of vertical ships touching each black row must be a multiple of 3.
Step 2
Therefore, summing up the number of vertical ships in each black row, the total number of vertical ships must also a multiple of 3.

Do you have a similar question?

Recalculate according to your conditions!

New Questions in Discrete math

Ask your question.
Get an expert answer.

Let our experts help you. Answer in as fast as 15 minutes.

Didn't find what you were looking for?