1-liner in Ruby / Python
Ruby:\n\n    def integer_break(n)\n      n < 4 ? n - 1 : 3((n-2)/3) * ((n-2)%3+2)\n    end\n\nPython:\n\n    def integerBreak(self, n):\n        return n - 1 if
Ruby:\n\n    def integer_break(n)\n      n < 4 ? n - 1 : 3**((n-2)/3) * ((n-2)%3+2)\n    end\n\nPython:\n\n    def integerBreak(self, n):\n        return n - 1 if n < 4 else 3**((n-2)/3) * ((n-2)%3+2)
['Ruby']