While doomscrolling a friend shared this problem for elementary schoolers:1
Substitute the letters with digits to make this operation correct
What’s the maximum value for ? (Keep in mind that for every digit we always have the same letter and that for two different digits we always have different letters. In addition no number starts with zero)
How would you resolve it?
Becomes:
First thing first: some terminology to go all on the same plane:
Digit position are counted from right to left: i.e: 345 has 3 as the first digit, 4 as the second and 5 as the third and last.
Square brackets show the possible values that an expression can assume i.e: means that T can either be 34 or 78
In the long addition representation a small number on top means a carry over in that column i.e:
Let’s get our hands dirty then.
The first thing we notice is that our numbers go from 3 digits to 4 digits: then the last digit in GAG needs to be higher than 4 so that we can have a carry in our sum. Our carry then can only be 1.
Why does it happen?
Ok, let’s think with smaller numbers, from 1 to 9. You can see that until 4 our sum is always one digit, then it gets 2 digits long but the second digit is never different than 1 in the following sums.
Can you see now how this applies to our case?
Not really
Let’s keep in mind the rule from the previuos box and try this with 3 digits numbers:
To summarize we can see that only the last digit of the addends is important when considering the number of digits of the final sum.
Having F equal to 1 and only 1 means that no other letter can be 1 at the same time so we can trim our possible values a little bit
In the first and third position we can see that , that means that A can only be an even number.
Having the first and third position equal in both the addends and the final sum means that we have no carry in the second position, that can only happen if .
What....
In our long addition we can assume that a column is “indipendent” as long as we don’t have a carry from the column on the right.
Let’s try with some random numbers:
We can see the same number in the first and third digits of the addends and the same number in the same positions of the final result. But what happens if in the second column we create a carry?
Our third columns are no longer independent because we have a carry from the second column so the first and third digits of our sums are different.
To have G in the addends and A in the sum in the first and third columns we have to be sure that the second column creates no carry and we do that by imposing the rule. (That is from the carry by the way)
That also implies that in the second column to preserve in the third and fourth column.
This reduces the possible values for G and A too:
We have a value collision between D and F that go against the rules of our problem.
In the first and third column we can now see so we can further reduce the possible digits for G too.
Our space of possible values is small enough that we can just go with trial and error.
First try:
Second try:
The maximum value for FADA is 1494 then. We could have skipped one calculation by just going
But heh, we just confirmed that our model was right by having two sets of sums both correct.
The high difficulty was what led to originally share it btw ↩︎