N-pointed Magic Star

Description

An n-pointed magic star is a star polygon in which numbers are placed at each of the n vertices and n intersections, such that the four numbers on each line sum to the same magic constant. A normal magic star contains the consecutive integers 1 to 2n. No numbers are ever repeated. No star polygons with fewer than 5 points exist and the construction of a normal 5-pointed magic star turns out to be impossible. The smallest magic star is the magic hexagram (n=6).

Related formulas

Variables

MMagic constant (dimensionless)
nNumber of vertices (dimensionless)