I'm dealing with the probabilistic method and how it applies to distinct sums. In the notes I'm using I encounter the following inequality:
$2^k\le nk$, which the notes simplify into this form:
$k\le \log_2n +\log_2\log_2n + O(1)$, and I have no idea how this is arrived at.
Clearly taking a $\log_2$ on both sides gives $\log_2 2^k\le \log_2 nk \implies k\le \log_2 n +\log_2 k$
But how do we get from $\log_2k$ to $\log_2\log_2n + O(1)$?
I'm sure I'm missing something obvious but any help would be appreciated.