Recreational Mathematics · Combinatorics

Closed Magic Star Generator

Solutions and Diagrams — exact search

a magic star {n/2} closed by a ring · two numbers on every ring side · numbers 1 to 4n · star lines and ring sides of four numbers

Created by Inder J. Taneja

A closed magic star has n outer points, n inner corners and a ring around it with two numbers on every side — the numbers 1 to 4n. Each star line (two outer points + two inner corners) sums to M, and each ring side (outer + two ring numbers + outer) sums to M too — or to a second sum, if you choose “two sums”. Counting every group with the lines it lies on gives:
outer points add up to n(3M − 16n − 4) / 4   (same sum)  ·  n(Mstar + 2Mring − 16n − 4) / 4   (two sums)
This gives the possible sums; the exact search finds every closed star or proves that none exists. Rotations, reflections and swapping the two numbers on a ring side count once.
1Choose the star
2Magic sums — click one to solve it, or count them all
3Closed stars and diagrams
Created by Inder J. Taneja numbers-magic.com ijtaneja.github.io Mathematical Generators inderjtaneja.wordpress.com