Let n$\ge$2.Each 1x1 square of a nxn board is colored in black or white such that every black square has at least 3 white neighbors(Two squares are neighbors if they have a common side).What is the maximum number of black squares?
1. **Claim for Even \( n \):**
   We claim that for even \( n \), we can have \(\frac{n^2-4}{2}\) black squares. This is achieved by using a chessboard pattern but ensuring that the four corner squares are white.

2. **Explanation for Even \( n \):**
   - The four corner squares must be white because each black square must have at least 3 white neighbors.
   - Along the edges, we cannot have two neighboring black squares.
   - Given any \(2 \times 2\) square, it can have at most 2 black squares to satisfy the condition that each black square has at least 3 white neighbors.

3. **Calculation for Even \( n \):**
   - Divide the board into nine rectangles: an \((n-2) \times (n-2)\) square in the middle, four unit squares in the corners, and four \((n-2) \times 1\) rectangles along the edges.
   - Tiling the middle square into \(2 \times 2\) sub-grids, and the rectangles into \(2 \times 1\) dominoes, we get:
     \[
     \frac{(n-2)^2}{2} + 4 \cdot \frac{n-2}{2} = \frac{(n-2)^2 + 4(n-2)}{2} = \frac{n^2 - 4}{2}
     \]
   - Therefore, the maximum number of black squares for even \( n \) is \(\frac{n^2-4}{2}\).

4. **Claim for Odd \( n \):**
   We claim that for odd \( n \), we can have \(\frac{n^2-1}{2}\) black squares. This is achieved by using a chessboard pattern but ensuring that the single unit square in the bottom right corner is white.

5. **Explanation for Odd \( n \):**
   - Divide the board into four rectangles: an \((n-1) \times (n-1)\) square in the top left corner, a single unit square in the bottom right corner, and two \((n-1) \times 1\) rectangles along the edges.
   - Tiling the left square into \(2 \times 2\) sub-grids, and the rectangles into \(2 \times 1\) dominoes, we get:
     \[
     \frac{(n-1)^2}{2} + 2 \cdot \frac{n-1}{2} = \frac{(n-1)^2 + 2(n-1)}{2} = \frac{n^2 - 1}{2}
     \]
   - Therefore, the maximum number of black squares for odd \( n \) is \(\frac{n^2-1}{2}\).

The final answer is \(\boxed{\frac{n^2-4}{2} \text{ for even } n \text{ and } \frac{n^2-1}{2} \text{ for odd } n}\).