Please reason step by step, and put your final answer within \boxed{}.
For what values of \( n \) does there exist an \( n \times n \) array of entries \(-1, 0\), or 1 such that the \(2n\) sums obtained by summing the elements of the rows and the columns are all different?
user