[Python3] Math
Intuition\nCount the number of bits of n and create an all 1 binary. \n\nAnalysis\nTime complexity O(1)\nSpace complexity O(1)\n\nImplemetation\n\nclass Solutio
**Intuition**\nCount the number of bits of `n` and create an all `1` binary. \n\n**Analysis**\nTime complexity `O(1)`\nSpace complexity `O(1)`\n\n**Implemetation**\n```\nclass Solution:\n    def smallestNumber(self, n: int) -> int:\n        return (1<<n.bit_length()) - 1\n```
['Python3']