Reverse engineering a math magic trick involving matrices.

This is all based on the amazing matrix $$\pmatrix{8&11&14&1\\13&2&7&12\\3&16&9&6\\10&5&4&15}$$ Note that this works for $34$. For $34+n$ you just replace $13,14,15,16$ with $13+n,14+n,15+n,16+n$. I do not know what the showman's backup plan for numbers below $34$ is.

EDIT: There is a Numberphile video on YouTube on this exact trick.


He did not write down 'a matrix'. He wrote down a magic square.

There are various algorithms for constructing them, the easiest to do mentally is to start with a generic starter matrix you memoize:

 A  1 12  7
11  8  B  2
 5 10  3  C
 4  D  6  9

And solve for A, B, C, D for your target number. With some practice you can do this super fast.


Observe that the numbers in the sixties lie on different rows, different columns and different quadrants. If you increase them simultaneously, all the twelve sums increase by the same amount.

In the pure magic square (numbers $1$ to $16$), the sum is $34$, hence if suffices to add $83-34=49$ to these four elements.

It would be more logical to request a sum in the range $[34,83]$ so that all elements are at most two-digit naturals.

For stronger mystification, you can split the required increment in two or more and adjust on the other possible groups.