Tight bounds on the maximal perimeter of convex equilateral small polygons