Magic Hypercube Formula


Equation for calculate magic hypercube is,

M k = n · ( n k + 1 ) 2

where,
n = The number of directions within a hypercube
k = The number that denotes the order (k-dimensional)
Mk = Magic constant