Is there a formula for the number of "faces"/boundaries of an hypercube defined by a multidimensional grid?

26 Views Asked by At

Consider a D dimensional grid, $ X = X_{1} \times X_{2} \times ... \times X_{D} $.

Denote the size of $X_{j}$ with $| X_{j} |$.

What is the formula for the number of "faces"/boundaries of an hypercube defined by a multidimensional grid?