# Fill this 5x5 number grid incrementally, either by moving two boxes diagonally or moving three boxes in a row or column

One day, a friend has shown me a 5 by 5 grid, challenging me to fill it with numbers from 1 to 25.
Obviously, it is not simple because there are some rules:

• The number 1 is placed in the center of the grid
• The numbers are placed in ascending order, either by moving two boxes diagonally or moving three boxes in a row or column (as shown in diagram)

So, how can you achieve that ?

(There are multiple answers, so you can just tryhard it and posting your own solution)

• What do you mean by "in ascending order"? In which direction? Jun 7 '17 at 13:55
• And what do these "movements" have to do with filling the grid? Jun 7 '17 at 13:55
• You have to fill the grid with numbers from 1 to 25. You start with the 1 in the center of the grid and you place the others numbers in an ascending order by moving two boxes diagonally or three boxes linearly. Sorry for the lack of precision, it's my first question. Jun 7 '17 at 13:59
• Ah, gotcha. Now I'm sure I've seen this puzzle here before quite recently, but I can't find it! +1 anyway. Jun 7 '17 at 14:00
• In other words you have to find a knight's tour on the 5x5 chessboard, except that you have to start in the centre, and instead of a knight you have a piece that can do move of the type {0,+-3}, {+-3,0}, and {+-2, +-2}. Jun 7 '17 at 14:37

Definitely not unique, but here's one solution:

\begin{array} & 2 & 17 & 20 & 3 & 16 \\ 12 & 25 & 6 & 13 & 22 \\ 19 & 9 & 1 & 18 & 8 \\ 5 & 14 & 21 & 4 & 15 \\ 11 & 24 & 7 & 10 & 23 \end{array}

Found entirely with trial and error.

• Gratz, I calculated with computer there are 352 possible solutions. Jun 7 '17 at 15:22
• @shyos: Are there any solutions where you can jump from the $25$ back to the $1$? Jun 7 '17 at 17:05
• @JaapScherphuis Sure. Just swap the 23 and 25 in this solution.
– user27014
Jun 7 '17 at 18:19
• To avoid overcounting rotationally and axially symmetric solutions, why don't we WLOG say that 2 has to go in the TL corner, and hence 3 in the top row?
– smci
Mar 29 '18 at 21:47

found another solution by trial and error

\begin{array} & 23 & 17 & 5 & 22 & 16 \\ 12 & 20 & 25 & 13 & 3 \\ 6 & 9 & 1 & 18 & 8 \\ 24 & 14 & 4 & 21 & 15 \\ 11 & 19 & 7 & 10 & 2 \end{array}

I kinda just made "boxes" where I could and used diagonals to transition the progression to the next "box"