A figure is formed by placing $N$ unit squares squares on the plane. Squares may share a common edge, but they may not otherwise overlap. What is the minimum perimeter of the figure?
Through drawing all the possible cases, I got that
a. For a square number $N^2$, the least perimeter is $4\cdot N$.
b. For $N^2-1$, the least perimeter isn't greater than $4\cdot N$.
But this does not satisfy for example $8$ number of tiles. So it seems to work as long as we keep the shape convex.
At last I can only say that for $K$ tiles, where $K$ is less than or equal to $N^2$, the least perimeter isn't greater than $4\cdot N$.
It can be of any shape, all matters is that the perimeter should be minimum. The individual pieces are squares
I have tried examples and derived at this function:
If k is a perfect square,
$ P_{k+1} = P_{k+2} = .... = P_{k+ \sqrt k} = P_k + 2$
$P_{k+ \sqrt k + 1} = P_k + 4$
For all other values of k, $ P_k = 4*\lceil {\sqrt k} \rceil$
Though i am not sure, but for small examples my formula seems to be correct.