OFFSET
0,6
LINKS
Wikipedia, Snake-in-the-box.
EXAMPLE
Triangle begins:
n\k| 0 1 2 3 4 5 6
---+--------------------
0 | 0
1 | 0 1
2 | 0 1 2
3 | 0 1 4 3
4 | 0 1 6 7 4
5 | 0 1 12 13 12 11
6 | 0 1 26 25 24 25 24
CROSSREFS
KEYWORD
AUTHOR
Pontus von Brömssen, Oct 01 2022
STATUS
approved