MathDB
broken line of allowed routes between 2 lattice points, not touching y=x line

Source: Finland 2014, Problem 3

September 1, 2019
combinatoricscoordinateslattice pointsbroken line

Problem Statement

The points P=(a,b)P = (a, b) and Q=(c,d)Q = (c, d) are in the first quadrant of the xyxy plane, and a,b,ca, b, c and dd are integers satisfying a<b,a<c,b<da < b, a < c, b < d and c<dc < d. A route from point PP to point QQ is a broken line consisting of unit steps in the directions of the positive coordinate axes. An allowed route is a route not touching the line x=yx = y. Tetermine the number of allowed routes.