This can be readily obtained by identifying each shortest path either as a selection of m objects from m + n objects or as a permutation of m + n objects consisting of exactly m of the symbols E (east) and n of the symbols N (north). Now one naturally wonders about the 3-dimensional analogue of this problem. Imagine for example, that a bug situated at one corner of an n X n X n Rubik's cube wants to reach the opposite corner of the opposite face in such a way that its path consists of line segments of integer length each of which is parallel to one of the axes. What is the number of such shortest paths? If the bug can chew its way through the interior of the cube, then the same argument used in the 2-dimensional version immediately gives the answer (3 n) !/( n !)3. But if the bug can only crawl on the surface of the cube and because the surface is slippery, must crawl along the edges or the grooves between the small cubes, to determine the number, f (n), of such shortest paths turns out to be a much harder problem than the 2-dimensional version. Though it is obvious that f(1) = 6, to compute the value of f(2) by brute force might be quite a challenging job. (Any one with 2 x 2 x 2 Rubik's cube is encouraged to give it a try.) To determine the value of f(3), with or without the use of an ordinary Rubik's cube, seems to be a formidable task. For the interest of the readers, we will not reveal these two values until the end of the article. To answer this question, we consider the more general problem in which the cube is replaced by a rectangular box. Let Q be the I X m X n rectangular prism in space with vertices at A = (0, 0, 0), B = (1, 0, 0), C=(l,m,O), D=(O,m,0), E=(0,m,n), F=(0,0,n), G=(l,0,n) and H=(l,m,n). See FIGURE 1, where 1, m, and n are positive integers. A bug wants to go from A to H on the surface of Q in such a way that its path consists of line segments of integer lengths each of which is parallel to one of the axes. What is the number f (1, m, n) of different shortest paths? (It is clear that the length of such a path is I + m + n.) This is question (1) asked in [1].
Read full abstract