Lemma 2.2. Let the weight of a variable xf in the ring R = k[x, x2t..., xr] be the magic sum of the corresponding element of the Hilbert basis /1,. With this grading of degrees on the monomials of R, the number of distinct Franklin squares of magic sum s is given by the value of the Hilbert function H(RC, s).