A cuboid with six faces painted red, cut 5 equal distances along the long side, 4 equal distances along the wide side, n equal distances along the high side, so that there is no red on each face The number of small squares is 24, what is the value of n?
一个长方体，六个面均涂有红色，沿着长边等距离切5刀，沿着宽边等距离切4刀，沿着高边等距离切n刀，要使各面上均没有红色的小方块为24块，则n的取值是多少．
<gadget id="calculator">5 - 2</gadget>
<output>3</output>

<result>3</result>