Given the sets Rmn={(x,y)∣x=0,1,…,m;y=0,1,…,n}, consider functions f:Rmn→{−1,0,1} with the following property: for each quadruple of points A1,A2,A3,A4∈Rmn which form a square with side length 0<s<3, we have
f(A1)+f(A2)+f(A3)+f(A4)=0.
For each pair (m,n) of positive integers, determine F(m,n), the number of such functions f on Rmn. functionsquare gridalgebralinear equation