Draw a times table (also called modular multiplication circle) of a number \$n\$ with \$k\$ vertices Not to be confused with this question.

You need to draw a times table (also known as Cremona's method for cardioid generation) as shown in this video. The number \$n\$ and \$k\$ will be the inputs.

In the video n and k are 2 and 10 respectively.



How to draw?


Draw a circle, divide its perimeter into equal spaced parts with
\$k\$ points and number them with \$0, 1, 2, \dots, k-1\$ .
Draw \$k\$ line segments between \$i\$ and \$i\times n \mod k\$ &nbsp; for all integers \$i\$, \$0 \le i &lt; k\$.




You can use any graphing library that your language allows.

Remember this is a code-golf so keep the answer short and sweet.



Examples

Input : n = 2 and k = 27




Input : n = 5 and k = 10




You can also play around with it here. The modulus/points is \$k\$ while multiplication factor is \$n\$.



Challenge

You need to draw at least the circle and the lines.

You can output any file format (svg, png, jpeg) and HTML rendering is also allowed.

You can also write the image to STDOUT



Best of luck because you are going to need it!
Python 2, 280 241 235 233 bytes



from math import*
n,k=input()
a=2*pi/k
s='&lt;svg viewBox="-49 -49 98 98"&gt;&lt;circle r="49"/&gt;&lt;path d="'
p=0;exec"s+='M%f,%f L%f,%f '%(49*cos(p),49*sin(p),49*cos(p*n),49*sin(p*n));p+=a;"*k
open('c.svg','w').write(s+'" stroke="red"/&gt;&lt;/svg&gt;')


Try it online!

Saved 35 bytes due to removing xmlns attribute at the encouragement of qwr; and 4 more since %k was not required. 4 more by using exec instead of for i in range(k).

Writes an SVG file named c.svg. Look, ma! No graphics library! :)