The Magic Square Calculator uses M = n × (n² + 1) / 2 to compute fundamental number theory and arithmetic relationships.