Simple Swift Solution
Code


# Code
```swift []
class Solution {
    func smallestNumber(_ n: Int) -> Int {
        var num = 0
        while num < n {
            num = num << 1 + 1
        }
        return num
    }
}
```
['Swift']