5. Six, seven, eight and nine are used once each to make the result equal to 24. What's the formula? As the title!

5. Six, seven, eight and nine are used once each to make the result equal to 24. What's the formula? As the title!


8*9/6+(7+5)=24
(8*9/6)*(7-5)=24



Formula for calculating the sum of divisors


Let a number be a
A = A1 ^ B1 * A2 ^ B2 * A3 ^ B3 an ^ BN
The results are as follows:
The number of divisors of a = (1 + B1) (1 + B2) (1 + B3). (1 + BN)
Sum of divisors of a = (1 + A1 + A1 ^ 2 + A1 ^ 3 + A1 ^ 4 +. A1 ^ B1) * (1 + A2 + A2 ^ 2 + A2 ^ 3 + A2 ^ 4 +. A2 ^ B2). (1 + an + an ^ 2 + an ^ 3 + an ^ 4 +. An ^ BN)
For example:
180=2^2*3^2*5
Number = (1 + 2) (1 + 2) (1 + 1) = 18
Sum = (1 + 2 + 4) (1 + 3 + 9) (1 + 5) = 546