# [Python 2], 280 bytes <!-- language-all: lang-python --> from math import* n,k=input() a=2*pi/k s='<svg xmlns="http://www.w3.org/2000/svg" viewBox="-49 -49 98 98"><circle r="49"/><path d="' for i in range(k):p=a*i;q=i*n%k*a;s+='M%f,%f L%f,%f '%(49*cos(p),49*sin(p),49*cos(q),49*sin(q)) open('c.svg','w').write(s+'" stroke="red"/></svg>') [Try it online!][TIO-jjkk8opy] [Python 2]: https://docs.python.org/2/ [TIO-jjkk8opy]: https://tio.run/##PY/daoQwEIXvfYoQkPysNeIKrbuOF71uH0LcqME1iUm62T69VVoKc5jDx8CcY7/DZHS5bYMzC1q6MCG1WOMCT3Q2g9L2K1CWdFByq8SceCCNf4zoudy1BzyFYC9CxBjzeM6NG0VZFIXYLzB6KBnfzRPwS1WjQ/XbPrhteuX6u0QOcFVj0Tb2@HoDTJLBOKSQ0sh1epR0ZhcLHVfXFRTX6cy7qz8B@UyHLB3Qx@8iKa1q3htPLct255X@cwdb/9nKWGKs1JT0@Z6PZCQSlkengqT@RDDywZlZAnbydqQ6SrSEbVuZla8/ "Python 2 – Try It Online" Writes an SVG file named `c.svg`, which can be viewed, for example, in a browser or other graphics program. Look, ma! No graphics library! :)