Firstly, there may be some difference in how computing calculates the height of the tree compared to how the height is determined in discrete mathematics (graph theory), this may be due to the existence of data at any node (or vertex), while in mathematics it is a method of pure theory.
So, perhaps best of all, you will specify which one you need.
m- ,
- - 2- .
2 ^ h = L (). , ,
, 2 ^ 0 = 1 ... 1 ... .
, n
n = 2 ^ (h + 1) - 1
h, log2
n = 2 ^ (h + 1) - 1
log2 (n + 1) = log2 (2 ^ (h + 1))
(log2 (n + 1) - 1) = h
= (n - 1)
, n ,
, - (2 ^ h = L)
.