The same mathematical solution can be written in many orders. For example, 3 × 8 and 8 × 3 have the same value, and a chain of additions can be grouped in different ways without creating a genuinely new route.
Exact arithmetic
The game and solver preserve rational numbers exactly. A value such as 8/3 remains 8/3 instead of becoming a rounded decimal. This prevents a valid route from being lost to floating-point error.
Expression trees
Every solution can be represented as a binary tree: two values are combined, their result is combined again, and the final operation reaches 24. Four inputs have five binary bracket shapes. The solver evaluates each shape across distinct number orders and operation assignments.
Equivalent routes
Commutative operations can swap sides without changing the mathematical route. The solver normalizes addition and multiplication families so it does not present dozens of superficial rewrites as separate discoveries.
Return to the 24 Game Solver to compare the distinct routes for a hand.