JAVA || Easy solution Beats 100% (Pure Math)
```\nclass Solution { \n    public int integerBreak(int n) {\n        int res = 0;\n        int three = n / 3;\n        int rest = n % 3;\n        if (n == 2) {
```\nclass Solution { \n    public int integerBreak(int n) {\n        int res = 0;\n        int three = n / 3;\n        int rest = n % 3;\n        if (n == 2) {\n            return 1;\n        } else if (n == 3) {\n            return 2;\n        } else if (rest == 0) {\n            res = (int) Math.pow(3, three);\n        } else if (rest == 1){\n            res = (int) Math.pow(3, three - 1) * (rest + 3);\n        } else if (rest == 2){\n            res = (int) Math.pow(3, three) * (rest);\n        }\n        return res;\n    }\n}\n\n//7=3x4=12\n//8=3x3x2=18\n//9=3x3x3=27\n//10=3x3x4=36\n//54=3^18=387420489\n//55=(3^17)*4=516560652\n//56=(3^18)*2=774840978\n//57=3^19=1162261467\n//58=(3^18)x2=1549681956
['Math', 'Java']