Recreational mathematics
n-pointed star polygon {n/2}: numbers 1..2n placed on n outer points and n inner crossings so every line of 4 sums to the magic constant 4n+2.
Finds just one valid solution, which is enough to draw the figure quickly. To see every possible solution, use the "All solutions" tab below.