For example:
Five numbers: 8, 5, 12, 19, 6
Magic number: 15
Possible solution: 5 * (19 - (8 * (12 / 6)))
The mathematical operators you can use are:
-Four basic operations (+, -, *, /)
-Exponents (preferably for small numbers)
-Parentheses
-Square root (only for 1, 4, 9, 16, 25)
-Factorials
-Absolute Value
-Negative Numbers
Here are some Krypto challenges for you! Give them a try:
1. Five numbers: 2, 4, 5, 9, 18
Magic number: 13
2. Five numbers: 4, 11, 14, 17, 22
Magic number: 15
3. Five numbers: 3, 7, 11, 14, 23
Magic number: 19
4. Five numbers: 1, 11, 14, 23, 25
Magic number: 7
5. Five numbers: 14, 15, 16, 17, 18
Magic number: 25
6. Five numbers: 11, 13, 17, 19, 23
Magic number: 4
BONUS: Is there a possible combination of five numbers and a magic number where it is IMPOSSIBLE to get the magic number using the mathematical operators? I don't even know the answer to this question.
Good luck and happy solving!