
We get a different sort of pattern when we analyze the lengths of diagonals of cubes in different dimensions. A diagonal of a cube is a segment joining two points that are not the endpoints of an edge. Whereas both diagonals of a square have the same length, a cube has diagonals of two different lengths, the shorter ones lying on square faces and the longer ones passing through the center. In each dimension, we may compare the length of the side of a cube to the length of its longest diagonal, thus obtaining another significant pattern.
 
The longer and shorter diagonals of a cube are the hypotenuse and edge of a right triangle.  
Each time a cube is formed in a new dimension, it means adding edges in a direction perpendicular to all of the directions thus far. The final edge is perpendicular in particular to the longest diagonal of the previous cube, and these two segments form the two sides of a right triangle having the longest diagonal of the new cube as its hypotenuse. This suggests that we can find the length of the longest diagonal by using one of the most famous of all theorems in plane geometry, the Pythagorean theorem.
This theorem states that in a right triangle having sides of length
p and q, the length of the hypotenuse is
Applying the Pythagorean theorem to the right triangles formed by cube
diagonals sets up an easily discerned pattern. For any dimension, we
consider a cube having side length 1. For a square, when
Ö  _{________}  Ö  _{_____}  Ö  _{__}  
(Ö2)^{2} + 1^{2}  =  2 + 1  =  3  . 
Ö  _{_________}  Ö  _{_____}  Ö  _{__}  
(Ö3)^{2} + 1^{2}  =  3 + 1  =  4  =  2. 
Ö  _{______________}  Ö  _{________}  Ö  _{__}  
(Ö(n1))^{2} + 1^{2}  =  n1 + 1  =  n 
 A demonstration of the Pythagorean theorem. Two squares built on the edges of a right triangle and four copies of the triangle exactly fill a large sqwuare that is also filled by four copies of the triangle and a square built on the hypotenuse. Take out the triangles, and we have the squares built on two sides of the triangle equal in area to the area of the square built on the hypotenuse. 
When we compare a unit cube to a cube of side length m, we observe that the lengths of the diagonals of the new cube are an times as large as the corresponding diagonals of the unit cube. Therefore the length of the longest diagonal of an ncube of side length m is mÖn, and the dimension appears under the square root sign. Note that the longest diagonal of a fourcube will be exactly twice as long as one of its edges. [an error occurred while processing this directive]