Python 1 liner solution
\nclass Solution:\n    def concatenatedBinary(self, n: int) -> int:\n        return int(\'\'.join([str(bin(i))[2:] for i in range(1, n+1)]), 2)%(10**9+7)    \n
```\nclass Solution:\n    def concatenatedBinary(self, n: int) -> int:\n        return int(\'\'.join([str(bin(i))[2:] for i in range(1, n+1)]), 2)%(10**9+7)    \n```
[]