Magic Square


A Magic Square of order n with start value a is an n by n matrix of consecutive integers starting from a, where each row sum, column sum and diagonal sum of n integers is the same.

Enter integers n >= 3 and a below to display a magic square of order n with start value a.

n
a


Computing Wisdom Inc. Home Page