Consider a table with $n$ rows and $2n$ columns. we put some blocks in some of the cells. After putting blocks in the table we put a robot on a cell and it starts moving in one of the directions right, left, down or up. It can change the direction only when it reaches a block or border. Find the smallest number $m$ such that we can put $m$ blocks on the table and choose a starting point for the robot so it can visit all of the unblocked cells. (the robot can't enter the blocked cells.)

Proposed by Seyed Mohammad Seyedjavadi and Alireza Tavakoli
1. **Claim**: The smallest number \( m \) of blocks required is \( \left\lfloor \frac{n}{2} \right\rfloor - 1 \).

2. **Observation**: The robot can slide along a row if and only if there is a block or an edge above or below it. This means that placing a block 'unlocks' two rows for the robot to traverse.

3. **Inequality Derivation**:
   - Since each block 'unlocks' two rows, we need at least \( 2m + 3 \geq n \) to ensure that all rows are accessible.
   - Solving for \( m \):
     \[
     2m + 3 \geq n \implies 2m \geq n - 3 \implies m \geq \frac{n - 3}{2}
     \]
   - Since \( m \) must be an integer, we take the floor function:
     \[
     m \geq \left\lfloor \frac{n - 3}{2} \right\rfloor
     \]
   - Simplifying further, we get:
     \[
     m \geq \left\lfloor \frac{n}{2} \right\rfloor - 1
     \]

4. **Construction**:
   - For \( n \equiv 1 \pmod{4} \):
     - Place blocks on rows \( 3, 7, 11, \ldots \) in the left-most column.
     - Place blocks on rows \( 6, 10, \ldots \) in the right-most column.
     - Start the robot from the third row.
   - For other values of \( n \):
     - Place blocks on rows \( 5, 9, 13, \ldots \) in the left-most column.
     - Place blocks on rows \( 4, 8, 12, \ldots \) in the right-most column.
     - Start the robot from the second row.

5. **Verification**:
   - The construction ensures that the robot can visit all unblocked cells by changing direction at the blocks or borders as required.

Thus, the smallest number \( m \) of blocks required is indeed \( \left\lfloor \frac{n}{2} \right\rfloor - 1 \).

The final answer is \( \boxed{ \left\lfloor \frac{n}{2} \right\rfloor - 1 } \)