@matrix Yes, the problem is obvious, because the real perimeter suppose to be a value in between outside square's perimeter and inside square's perimeter. The second - removing "squares" does not get approximation to the perimeter. Increasing the amount of sides - does.