------
## 最终结论
```python
def tetrahedral_number(n):
    return n * (n + 1) * (n + 2) / 6

assert tetrahedral_number(5) == 35.0
assert tetrahedral_number(6) == 56.0
assert tetrahedral_number(7) == 84.0
```