Solution:
Draw a diagonal of the small n-gon to form the red triangle △ABC as shown in the diagram, where A is a vertex of the large n-gon and B and C are the vertices of the small n-gon closest to A on the two diagonals from A. Also draw the diagonal AD of the large n-gon such that ∠DAB=π/n.

Let E be the vertex of the large n-gon adjacent to A on the same side of A as D. Then ∠EAB=(k−1)π/n, and since the angles of the n-gon are (n−2)π/n,
∠BAC=n(n−2)π−2⋅n(k−1)π=n(n−2k)π,
so since △ABC is isosceles, the base angle is
∠ABC=∠ACB=nkπ.
Thus we have
ABBC=2cos(kπ/n).
Since ∠BAD=π/n,
ADAB=2cos(π/n)1⟹ADBC=cos(π/n)cos(kπ/n).
But the green shapes are similar, so the ratio of the side length of the small n-gon to the side length of the large n-gon is equal to the ratio BC/AD. This proves our claim.