Draw 20 ( n ) evenly-spaced dots along a circle

Assign an index value ( i ) to every dot

Connect every dot from their index using the formula (i * 2) % n
(1 → 2), (4 → 8), (12 → 4)...

Add more dots

Use another formula like i * 5 % n

Fade out the lines

Animate the multiplying factor from 1 to 6