aosshome

MAGIC SQUARES


MAGIC SQUARES will have numbers giving same total row wise, column wise and diagonal wise.

Demo 3 by 3 Magic Square for sum (has to be multiple of 3)

Input a Input b Sum of row/column
Row or column or diagonal sum =
x-ax+a-bx+b
x+a+bxx-a-b
x-bx+b-ax+a
Changing a, b to any positive number but a is not equal to b

Demo 3 by 3 Magic Square for chosen top row (will be corrected for sum to be multiple of 3)

Input a Input b Input c
Row or column or diagonal sum =
abc
x+c-ax=(a+b+c)/3x+a-c
2x-c2x-b2x-a
Changing a, b and c to any positive number. Sum of a+b+c should be multiple of 3. c will be corrected and magic square will be made with new c. Some combinations can lead to some cells with negative value

Demo 4 by 4 Magic Square for sum (has to be multiple of 4)

Input a b c d Sum
Row or column or diagonal sum =
Shaded 4 center cells and 4 corner cells add to same sum
x+ax-a-dx+b+dx-b
x-a+cx+dx-cx+a-d
x-b-cx+cx-dx+b+d
x+bx+a-cx-b+cx-a
Create different magic squares by changing a, b,c and d.

Demo 4 by 4 Magic Square for chosen top row

This can be date of birth demo when dd, mm, cc* and yy are a,b,c and d
cc* is century or first 2 digits in yyyy
Also called Ramanujam square, which encodes his birth date (22-12-1887) in its first row (default value set). The sum 139 is the 34th prime number, and the sum of the five consecutive primes (19+23+29+31+37). Works for any 4 numbers as the top row.
Input a (dd) b (mm) c (cc) d (yy)
Row or column or diagonal sum =
Also 4 corner and center cells, all 4x4 cells add to same sum.
abcd
d+1c-1b-3a+3
b-2a+2d+2c-2
c+1d-1a+1b-1
This magic square has the unique property that the sum of the numbers in every row, column, and both main diagonals is same. In addition 4 corner cells, 4 center cells, all 4x4 cells add to same sum.

Magic Square 3 by 3: basic one with sum of 15, sum increased by adding multiple of 3

Multily cell by Add each cell by
Row or column or diagonal sum

Magic Square 4 by 4: basic one with sum of 34, sum increased by adding multiple of 4

Multily cell by Add each cell by
Row or column or diagonal sum

Magic Square 5 by 5: basic one with sum of 65, sum increased by adding multiple of 5

Multily cell by Add each cell by
Row or column or diagonal sum

Magic Square 6 by 6: basic one with sum of 111, sum increased by adding multiple of 6

Multily by Add each cell by
Row or column or diagonal sum

Magic Square 7 by 7: basic one with sum of 175, sum increased by adding multiple of 7

Multily by Add each cell by
Row or column or diagonal sum

Magic Square 8 by 8: basic one with sum of 260, sum increased by adding multiple of 8

Multily by Add each cell by
Row or column or diagonal sum

Magic Square 9 by 9: basic one with sum of 369, sum increased by adding multiple of 9

Multily by Add each cell by
Row or column or diagonal sum

Magic Square 10 by 10: basic one with sum of 505, sum increased by adding multiple of 10

Multily by Add each cell by
Row or column or diagonal sum

Magic Square 11 by 11: basic one with sum of 671, sum increased by adding multiple of 11

Multily by Add each cell by
Row or column or diagonal sum

Magic Square 12 by 12: basic one with sum of 870, sum increased by adding multiple of 12

Multily by Add each cell by
Row or column or diagonal sum