Scale factor for inscribed/circumscribed hexagon and dodecagon

Use the sliders for K1 and K2 to see how each increases in size. By finding the perimeter of the inscribed polygon we can use a scale factor to find the perimeter of the circumscribed polygon. How is the scale factor calculated?