My friend, Knox S., introduced me to this problem. According to a post on The Telegraph’s Education page, this was originally posted on Facebook by Randall Jones.

The first line is fine by the standard rules of arithmetic, but as soon as you read the 2nd and 3rd lines, you know something is amiss. What could be the output of line 4?

The Telegraph post above claims there are two answers. Sadly, that post suggests there are only two solutions. The reality is that there is an infinite number of correct answers.

I first share the two most commonly proffered solutions suggested by the Telegraph as the only answers. I follow this with Knox’s clever use of an incremental number base. Finally, I offer a more generalized approach to support my claim of many more solutions.

**STANDARD SOLUTIONS**

**THE ANSWER IS 40**: After the first line, add the previous answer to next sum.

Consistent with the first three lines, the same rule to line 4 “proves” the answer is 40:

While nothing requires it, this approach is recursive. I’ve not seen anyone say this, but the 40 approach requires the equations to appear ** in the given order**. If you give the equations in a different order, the rule is no longer consistent. In particular, if you wanted a 5th line, what would it be? There’s nothing clear about how to extend this solution.

**THE ANSWER IS 96**: Alternatively, you can multiply the two numbers on the left and add that product to the first number. This procedure is consistent with the first three lines, so the solution to line 4 must be 96:

The nice thing about this approach is that the solution is explicit, not recursive. What’s obviously counter-intuitive is why you would first multiply the given numbers, and then why you would add the result to the first number, not the second. This approach is consistent with the given information, so it is valid.

Unlike the first solution, this multiplicative approach is not commutative. By this rule, 1+4 yields 5, as shown, but 4+1 would be . Nothing in the problem statement required commutativity, so no worries.

Another good aspect of this algorithm is that the order of the equations is now irrelevant. It applies no matter what numbers are “added” on the left side of the equation. This is definitely more satisfying.

**CHANGE THE NUMBER BASE**

**THE ANSWER IS 201**: Knox noticed that if you changed the number base, you could find another legit pattern. The first line is standard arithmetic, but how could the next lines be consistent, too? You know 2+5 doesn’t give 12 in standard base-10 arithmetic, but if you use base-5, .Unfortunately, in base-5, line 1 would be and line 3 would be , both inconsistent. Knox’s cleverest move was to vary the number base. The 3rd line is true in base-4; since the 1st line is true in any base larger than five, he found a consistent pattern by applying base-6 to line 1:

Following this pattern, the next line would be base-3, giving 201 as the answer:

The best part of Knox’s solution is that he maintains the addition integrity of the left side. The down-side is that this approach works for only one more line. Any 5th line would give a base-2 (binary) answer, and since base-1 does not exist, the problem would end there.

Knox’s approach also allows you to use any numbers you want for the left-hand sums. But notice that answers depend on where you write the sum. For example, if (2+5) was in any other line, you would not get 12. In line 1, , in line 3, you’d get .

**CREATE YOUR OWN SOLUTION**

By now, you should see that any any rule could work so long as you are consistent. Because standard arithmetic does not apply, solvers should feel free to invoke any functions or algorithms desired. One way to do this is to think of each line as the inputs (left side) and output (right side) of a three-variable function.

**THE ANSWER IS 96**: One possible function is for some values of a, b, and c that passes through (1,4,5), (2,5,12), and (3,6,21). I used my TI-Nspire CAS to solve the resulting system:That means if x and y are the given left-side numbers and z is the right-side answer, the equation satisfies the first three lines and the answer to line 4 is 96

**THE ANSWER IS**: If you can square the inputs, why not cube them? That means another possible function is . My CAS solution of the resulting system leads to the fractional answer:

The first three given equations essentially define three ordered triples–(1,4,5), (2,5,12), and (3,6,21)–so almost any equation you conceive with three unknown coefficients can be used to create a 3×3 system of equations. The fractional solution for line 4 may not be as satisfying as any of the earlier approaches using only integers, but these last two examples make it clear that there should be an infinite number of solutions.

These last two solutions are especially nice because they are explicit and don’t depend on the order of the given information. You can choose any two numbers to “add”, and the algorithms will work.

Notice also that all of these functions, except for Knox’s, are non-commutative. No worries, the problem already broke free of standard rules in line 2.

**ONE THAT DIDN’T WORK**

The last two examples prove the existence of quadratic and cubic solutions, so why not a linear solution? In other words, is there a 3D plane in the form containing the given points?

Unfortunately, the resulting 3×3 system didn’t solve. The determinant of the coefficient matrix is zero, suggesting an inconsistent or dependent system. Upon further inspection, subtracting line 1 from line 2 in the planar system gives . Similarly, subtracting line 2 from line 3 gives . Since both can’t be simultaneously true, the system is inconsistent and has no solution. It was worth the effort.

**CONCLUSION**

Since standard arithmetic didn’t apply after the first line and no other restrictions were in play, that opened the door to lots of creativity. The many different solutions to this problem all hinge on finding some function–any function–that satisfied the first three lines. Find one of these, and the last line is simple. That some attempts won’t work is no hinderance. Even when standard algorithms seem to apply, there is almost always the possibility of some creative twist when working with numerical sequences.

So, whenever you’re faced with a non-standard system, have fun, be creative, and develop something unexpected.