• + 0 comments
    def utopianTree(n):
        # Write your code here
        return 2 ** (math.floor((n + 1) / 2) + 1) - 1 - (n % 2)