1. Introduction
A magic rectangle of order , , is an arrangement of the numbers
from 0 to in an rectangle such that each number
occurs exactly once in the rectangle and the sum of the entries of each
row is the same and the sum of entries of each column is also the same.
The following theorem, whose proof can be found in [1,2] and [3], settles the existence of an .
Theorem 1. An magic rectangle exists if and only if , , and .
A -magic
square of order is an
arrangement of the numbers from 0 to in an array such that each row and
each column has exactly filled
cells, each number occurs exactly once in the array, and the sum of the
entries of any row or any column is the same. The study of magic squares
with empty cells was initiated in [4]. A magic square is called –diagonal if its
entries all belong to consecutive
diagonals (this includes broken diagonals as well).
Theorem 2. [4] There exists a -diagonal magic square of order if and only if or and either is odd or is even.
A signed magic rectangle is an array with entries from , where if
is odd and if
is even, such that precisely
cells in every row and cells in every column are filled, every
integer from set appears exactly
once in the array and the sum of each row and of each column is zero. By
the definition, , and . If or , then the rectangle has no empty
cell. In the case where , we
call the array a signed magic square. Signed magic
squares represent a type of magic square where each number from the set
is used once.
The following two theorems can be found in [5].
Theorem 3. An exists precisely when , or when and , or when and , or when .
In [5] the notation is used for a signed magic
square with filled cells in each
row and filled cells in each
column.
Theorem 4. There exists an precisely when or .
In this paper we prove that a signed magic rectangle exists if and only if and or and .
Being the smallest poset that contains , is called the principle ideal generated , which we refer to as a graph
ideal. So, we can describe as a union of graph ideals. However, the use of order theory
here is not superficial. Our main method for determining the down-arrow
Ramsey set relies on viewing red-blue colorings of a graph as unions of
graph ideals.
2. Main Constructions
A rectangular array is shiftable if it contains
the same number of positive entries as negative entries in every column
and in every row. Figure 1 displays a shiftable . These arrays are called
shiftable because they may be shifted to use different absolute
values. By increasing the absolute value of each entry by , we add to each positive entry and to each negative entry. If the number
of entries in a row is , this
means that we add to each row, and the same argument applies to the columns.
Thus, when shifted, the array retains the same row and column sums.
Figure 1: A Shiftable
Theorem 5. Let there exist a shiftable . Then for every
there exists a shiftable and
there exists a shiftable .
Proof. Let be a
shiftable . Note that
since is shiftable, it follows
that and are both even. Partition an empty rectangle, say , into empty rectangles of size , say , where . For each we fill the cell of with if is positive or with if is negative. The resulting rectangle is
a shiftable . See
Figure 2.
Figure 2: A Shiftable

Figure 3: A Shiftable
Theorem 6. Let there exist a shiftable and a (shiftable) with even. Then there exists a
(shiftable) for .
Proof. Apply Part 1 of Theorem 5 with a
shiftable to obtain a
shiftable , say , for . Let be a (shiftable)
and let
be the rectangle obtained from by adding to each positive entry of and subtracting from each negative entry of
. Finally, let be the rectangle obtained
from and as follows: if , then and if , then . It is easy to see
that is a (shiftable) . 
Figure 4 displays an obtained by the
construction given in the proof of Theorem 6 using the shiftable given in Figure 1, an and .
Figure 4: An
Theorem 7. Let there exist a shiftable and a (shiftable) with even., then there exists a
(shiftable) for .
Proof. Apply Part 2 of Theorem 5 with a
shiftable to obtain a shiftable , say , for . Let be a (shiftable)
and let
be the rectangle obtained from by adding to each positive entry of and subtracting from each negative entry of
. Finally, let be the rectangle
obtained from and as follows: if , then and if , then . It is easy to
see that is a (shiftable) . 
Figure 5 displays a shiftable obtained by the
construction given in the proof of Theorem 7 using the shiftable given in Figure 1, the shiftable given in Figure 1, and .
Figure 5: A Shiftable
3. The Existence of an and an
In this section we present direct constructions for the existence of
an , where and even, and an , where and even. We will make use of
these results in Section 4. Note that if is odd there is no because is odd and there is no because is odd.
Proposition 1. There exists an for even and .
Proof. Define an rectangle as
follows.
Column 1:
Column 2:
Column 3:
By construction, it is easy to see that the entries in consist of , which
are the numbers in an . Figure [A.m=8.3.2]
displays the rectangle when . We now prove that the sum of
each row of is zero. The row sum
for row of , where , is
Similarly, the row sum for row of
, where , is
Let and be the numbers in a row of . Then , which implies that . Since zero does not appear in , it follows that the numbers and do appear in the same row of .
Now let be an empty rectangle. For each let . By construction, the
numbers in row of are precisely the numbers in row of . Therefore the row sum for each row of
is also zero. Since are entries of for each , it follows that column
of contains only and . Hence, is an for even and . 
Figure [8,12;3,2] displays an obtained by the
construction given in Proposition 1.
Figure 6: Array Given in Proposition 1
Figure 7: An
It is an easy exercise to see that there is no . The following proposition
shows how to build an for even and .
Proposition 2. There exists an for even and .
Proof. Define a rectangle as
follows.
Column 1:
Column 2:
Column 3:
Column 4:
Column 5:
By construction, the entries in consist of , which are the
numbers in an .
Figure 7 displays the rectangle when . We now prove that the sum of each
row of is zero. The row sum for
row of , where , is Similarly, the row sum for row of , where , is
Let be the numbers in
row and columns of , respectively. It is straightforward to
see that if and
, then and . Now let . If , then This implies that .
If , then
This implies that
Therefore if ,
then the numbers and do not appear in the same row of . If and , then the numbers and do not appear in row of .
When we
construct an array by rearranging the eight entries
of which are in the intersection
of columns 1 and 2 with rows and as follows. Switch Figure 7
displays the rectangle when
. It is easy to see that the
sum of each row of is zero
and and do not appear in any row of .
Now let , , and let be an empty rectangle. For each let . By construction, the
numbers in row of are precisely the numbers in row of . Therefore the row sum for each row of
is also zero. Since are entries of for each , it follows that column
of contains only and . Hence, is an .
Similarly, if
and , we use the array to build an . 
Figure 8: Arrays and Constructed by Proposition
4. The Existence of an with Even
Let there exist an .
If or , then or , respectively. We study the
existence of an and
an in the
following two subsections, respectively.
4.1. The Existence of an
In this subsection we construct signed magic rectangles with
parameters , , , and , where .
Lemma 1. There exists a shiftable for positive integers
.
Proof. Figure 1 displays a shiftable . So by Part 1 of Theorem 5, there exists a shiftable for . Now by Part 2 of Theorem 5 there exists a shiftable for . 
Lemma 2. There exists a shiftable for .
Proof. Apply Lemma 1 with and to obtain a shiftable for all . 
Lemma 3. There exists a shiftable for .
Proof. Figure 9 displays a shiftable . So by Part 2 of Theorem 5, there exists a shiftable , say , for . On the other hand, by Lemma 2, there
exists a shiftable , say , for and . Now apply
Theorem 6 with and to obtain a shiftable for . 
Figure 9: A Shiftable
Lemma 4. There exists a shiftable for .
Proof. By Proposition 1, there
exists an , say
, for . On the other hand, by Lemma 2, there exists a shiftable , say , for and . Now apply
Theorem 6 with and to obtain an for and . When we apply Proposition 1. 
Lemma 5. There exists a shiftable for .
Proof. By Proposition 1, there
exists an , say , for . On the other hand, by Lemma 2, there
exists a shiftable , say , for . Now apply Theorem 6
with and to obtain for . 
4.2. The Existence of an
In this subsection we construct signed magic rectangles with
parameters ,
, , and for all .
Lemma 6. Let . Then there exists an .
Proof. By Lemma 1, there exists
a shiftable , say
, for . Let be a array with first row and second row . Then is an . Now apply Theorem 6 with and to obtain an . See Figure 4. 
Lemma 7. There exists a shiftable for .
Proof. Apply Lemma 1 with and q= to obtain a shiftable for . 
Lemma 8. There exists a shiftable for
Proof. Apply Part 2 of Theorem 5 with the
shiftable displayed in Figure 9 to obtain a shiftable , say . Then apply Theorem 7 with and the shiftable displayed in Figure 10 to obtain a shiftable . 
Figure 10 :A
Lemma 9. There exists a shiftable for .
Proof. By Lemma 8,
there is a shiftable for , say . Apply Lemma 1 with and to obtain a shiftable , say
, for and . Finally, apply Theorem 6 with arrays and to obtain a shiftable for and . When apply Lemma 8. 
Lemma 10. There exists an for .
Proof. Apply Lemma 1 with and to obtain a shiftable ,
say , for . By Proposition 1 there is an , say , for . Finally, apply Theorem 6
with arrays and to obtain an for . 
Lemma 11. There exists an for .
Proof. Apply Lemma 1 with and to obtain a shiftable , say . By Proposition 1 there is an
, say , for . Finally, apply Theorem 6
with arrays and to obtain an for . 
We conclude this section with the following theorem.
Theorem 8. Let be even. There exists an if and only if and or , and .
5. The existence of an with odd and even
In this section we investigate the existence of a signed magic
rectangle with odd and even. Note that if and are both odd, the is no .
5.1. The existence of an
with odd
We consider two cases:
and .
Lemma 12. There exists a shiftable for all .
Proof. Apply Lemma 1 with and to obtain a shiftable for .
Figure 11 displays a shiftable . Therefore there is a
shiftable by
Theorem 7. Now apply Part 1 of
Theorem 5 to obtain a shiftable for all . 
Figure 11: A Shiftable
Lemma 13. There exists a shiftable for all .
Proof. Apply Lemma 1 with and to obtain a shiftable for . Figure 1
displays a shiftable .
Therefore, by Theorem 7,
there is a shiftable . We now apply Part
1 of Theorem 5 to obtain a shiftable for all . 
Figure 12: A Shiftable
5.2. The existence of an
with odd
We consider two cases:
and .
Lemma 14. There exists a shiftable for all .
Proof. Apply Part 2 of Theorem 5 with the
shiftable given in Figure 9 to
obtain a shiftable for . Figure 13
displays a shiftable . Therefore there is a shiftable for by Theorem 7. 
Figure 13: A Shiftable
Lemma 15. There exists a shiftable for all
.
Proof. Apply Lemma 1 with and to obtain a shiftable for . Figure 11
displays a shiftable . Therefore there is a shiftable for by Theorem 7. Now apply Part 1 of
Theorem 5 to obtain a shiftable , say
, for all and . By Lemma 14 there exists a shiftable for , say . Now apply Theorem 6 with and to obtain a shiftable for and . When , we apply Lemma 14. 
Lemma 16. There exists a shiftable for all .
Proof. Apply Part 2 of Theorem 5 with the
shiftable given in Figure 9 to
obtain a shiftable
for . Figure 14 displays a shiftable . Therefore there is a
shiftable by
Theorem 7. 
Figure 14: A Shiftable
Lemma 17. There exists a shiftable for all
.
Proof. Apply Lemma 1 with and to obtain a shiftable for . Figure 1
displays a shiftable .
Therefore there is a shiftable by Theorem 7. Now apply Part 1 of
Theorem 5 to obtain a shiftable , say
, for all and . By Lemma 16 there exists a shiftable , say , for . Now apply Theorem 6 with and to obtain a shiftable for and . When we apply Lemma 16. 
We summarise the results obtained in Lemmas 14-17 in the next
theorem..
Theorem 9. Let be odd and be even. Then there exists an if and only if , and .
We are now ready to state the main theorem of this paper.
Main Theorem. There exists an if and only if and
or and .