There is a relation between rectilinear-adjacent squares such that there is a unique rectilinear path from the top-left corner of the grid down to the bottom-right corner of the grid. Each square can participate in the path no more than once. What is the relation and the path it induces?

enter image description here


Hint 1

The relation is inspired by a Project Euler puzzle.

Hint 2

The relation pertains to whether adjacent numbers are part of the same triplet.

  • $\begingroup$ Care posting another hint? $\endgroup$
    – user68905
    May 14, 2020 at 2:11
  • $\begingroup$ @Daniil Sure, I'll add another soon! $\endgroup$
    – Galen
    May 14, 2020 at 2:15

2 Answers 2


The path is as follows

Solution Image

And the relationship is

Adjacent numbers are two members of a Pythagorean triplet


Sorry, I did not see that someone posted an answer already.


The relationship

The sum or difference of squares of the connected numbers is a square.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.