0
$\begingroup$

This is a brainteaser that I got from a friend.

Image

The question is what formula is being used in the cells?

If you take a closer look at the picture you will see that i = mod10((p or q)-1) and j = integer(i/10). I have also found out that this formula is used some how: a(n) = n^2+1.

But how is n generated? If you take a look at cell I31, why is n = 1.41421356 there and not an integer? Am I thinking wrong?

Any clues would be appreciated.

Link to larger image: http://i.stack.imgur.com/oaHcY.jpg

  • 0
    I was missing the the second square... Did +1 instead and nothing worked. Solved now thanks to Chris.2011-11-16

1 Answers 1

4

For cell $(p,q)$ you generate

$i(p)=(p-1)\bmod 10$ $j(p)=\left\lfloor\frac{p-1}{10}\right\rfloor$

Then the value in cell $(p,q)$ is

$a(p,q) = \sqrt{(j(p) - j(q))^2 + (i(p) - i(q))^2}$