Let m and n are fixed natural numbers and Oxy is a coordinate system in the plane. Find the total count of all possible situations of n+m−1 points P1(x1,y1),P2(x2,y2),…,Pn+m−1(xn+m−1,yn+m−1) in the plane for which the following conditions are satisfied:(i) The numbers xi and yi (i=1,2,…,n+m−1) are integers and 1≤xi≤n,1≤yi≤m.
(ii) Every one of the numbers 1,2,…,n can be found in the sequence x1,x2,…,xn+m−1 and every one of the numbers 1,2,…,m can be found in the sequence y1,y2,…,yn+m−1.
(iii) For every i=1,2,…,n+m−2 the line PiPi+1 is parallel to one of the coordinate axes. (Ivan Gochev, Hristo Minchev) combinatoricsnumber theorygeometryalgebraSequences