An octahedral number is a figurate number that represents an octahedron, or two pyramids placed together, one upside-down underneath the other. The octahedral number for n can be obtained by adding the n-1 and nsquare pyramidal numbers together, or by using the following formula: