In mathematics, the log2 n(binary logarithm ) is the logarithm to the base 2.
The binary logarithm of n is the power to which the number 2 must be raised to obtain the value n. It is the inverse function of n 2n.
Logarithm base 2: Log28 = 3
Logarithm base 2: Log25 = 2.321928
Logarithm base 2: Log24 = 2
Logarithm base 2: Log22 = 1