First solution suggested by the student Salman Saleh. We will construct an n×n array by induction on n≥2.
For n=2, consider the following example:
Assume there exists an
n×n array
such that the sums of entries on each row and each column are pairwise distinct perfect squares and such that the sum of the last column is greater than all the other sums. Let
ri2=j=1∑nai,j, for i=1,2,…,nand
cj2=i=1∑nai,j, for j=1,2,…,n,be the distinct perfect squares. Notice that
i=1∑nri2=j=1∑ncj2Consider the following
(n+1)×(n+1) array
where
xn=((25n2−4)cn2−1)2−12i=1∑nri2.Notice that
xn>((25n2−4)cn2−1)2−12ncn2>(21n2−4)cn2>0.The sums of entries of each row and each columns are
(4c1)2,(4c2)2,…,(4cn−1)2,(4r1)2,(4r2)2,…,(4rn)2,which are all distinct and less than the three other sums
(10ncn)2<((25n2−4)cn2−1)2<((25n2−4)cn2+1)2,and clearly, the sum of the last column is the greatest perfect square.
Second solution suggested by the student Alhamza Alnufayli. If n=2k≥2, we consider the following n×n array:
The sums of entries of each row and each column are
(9⋅2k−1)2,…,(9⋅2)2,(9⋅1)2,(2⋅1)2,(2⋅2)2,…,(2⋅2k−1)2,(7⋅2k−1)2,…,(7⋅2)2,(7⋅1)2,(6⋅1)2,(6⋅2)2,…,(6⋅2k−1)2,which are all distinct perfect squares.
If
n=2k+1≥2, we consider the following
n×n array:
The sums of entries on each row and each column are
(9⋅2k−1)2,…,(9⋅2)2,212,132,(2⋅1)2,(2⋅2)2,…,(2⋅2k−1)2(7⋅2k−1)2,…,(7⋅2)2,(7⋅1)2,232,(6⋅1)2,(6⋅2)2,…,(6⋅2k−1)2which are all distinct perfect squares.