login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A353259
Solution to Snake Numbers Problems for Snakes from 1 to n for an n X n square grid (see Comments).
4
1, 4, 7, 16, 19, 36, 39, 64, 67, 100
OFFSET
1,2
COMMENTS
On an n X n square board we draw a path with squares that we number 1, 2, ..., n, 1, 2, ..., n, 1, ... of the greatest length, which will be a(n). The path advances from one number to the next horizontally or vertically, not diagonally, after n it goes back to number 1. The path cannot cross itself. There cannot be repeated numbers in the same row or column.
FORMULA
a(n) = n^2 for even n.
EXAMPLE
a(5) = 19 from Giorgio Vecchi:
+---+---+---+---+---+
| 2| 3| 4| 5| 1|
+---+---+---+---+---+
| 1| | | 3| 2|
+---+---+---+---+---+
| | 1| 5| 4| |
+---+---+---+---+---+
| 3| 2| | | 4|
+---+---+---+---+---+
| 4| 5| 1| 2| 3|
+---+---+---+---+---+
.
a(7) = 39 from Giorgio Vecchi.
a(9) = 67 from Giorgio Vecchi.
For odd n >= 3 the solutions up to now have a(n) = (n-1)^2+3.
CROSSREFS
Sequence in context: A130665 A236305 A212062 * A345429 A256926 A101534
KEYWORD
nonn,more
AUTHOR
Rodolfo Kurchan, Apr 08 2022
STATUS
approved