Instead of picking two points from the interior of the cube, instead pick two points on different faces of the unit cube. In this case, the average distance between the points is
(1)
|
(OEIS A093066; Borwein and Bailey 2003, p. 26; Borwein et al. 2004, pp. 66-67). Interestingly,
(2)
|
as apparently first noted by M. Trott (pers. comm., Mar. 21, 2008).
The two integrals above can be written in terms of sums as
(3)
| |||
(4)
|
(Borwein et al. 2004, p. 67), where however appears to be classically divergent and perhaps must be interpreted in some regularized sense.
Consider a line whose endpoints are picked at random on opposite sides of the unit cube. The probability density function for the length of this line is given by
(5)
|
(Mathai 1999; after simplification). The mean length is
(6)
| |||
(7)
|
The first even raw moments for , 2, 4, ... are 1, 4/3, 167/90, 284/105, 931/225, 9868/1485, ....
Consider a line whose endpoints are picked at random on adjacent sides of the unit cube. The probability density function for the length of this line is given by
(8)
|
(Mathai 1999; after simplification). The mean length is
(9)
| |||
(10)
|
The first even raw moments for , 2, 4, ... are 1, 5/6, 41/45, 1469/1260, 5/3, 53947/20790, ....