Some useful formulas when dealing with octrees. Remember that an octree of height *h* equal to zero means that it is composed by a single root node with no children.

Minimum height *h* for an octree with *n* leaf nodes.

Maximum number of leaf nodes *n* for an octree of height *h*.

Maximum number of nodes *n* for an octree of height *h*.