While evaluating the complexity of an algorithm, I got an inequality that I am unable to understand.
Let us consider this series:
$$x= n + (2^0 + 2^1 + 2^2 + ....... + 2^{\lfloor\log(n-1)\rfloor})$$
How do I prove that $x\leq 3n$ ?
Please help me understand this intuitively or otherwise.