The numbers 1 through 10 are written on a blackboard. You erase two numbers of your choice, and write their product plus their sum
a,b→ab+a+b
So, now there are nine numbers on the board. You repeat this process until a single number remains. What is the largest this number can be?
(I can't stop you from writing code to brute-force this, but I assure you there's a nice solution and coding isn't needed.)
Answer
Let the combining operation be ⊗, i.e. a⊗b=ab+a+b.
Observe the following for ⊗: a⊗b+1=ab+a+b+1=(a+1)(b+1)
Since multiplication is commutative and associative, the ordering doesn't matter and all possible sequences will give us the same answer.
The solution to this transposed problem is then 2×3×4×…×11=11!=39916800.
And so the solution to the original problem is 1⊗2⊗3⊗…⊗10=11!−1=39916799.
No comments:
Post a Comment