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