OFFSET
1,3
COMMENTS
Let ABC be an equilateral triangular grid of side n containing n^2 unit equilateral triangles. X axis is defined along AB and Y axis is defined along AC such that starting point A has coordinates (0,0), finishing point B has coordinates (n,0) and C is at (0,n).
Points on the path satisfy x + y <= n, y <= n/2 and x^2 + y^2 + x*y should increase when moving to the next grid point.
Each of P-path from A to B gives a unique Q-path from B to A and R-path from C to A by transforming a grid point (h,k) on P-path into; (n-h-k,k) on Q-path and (k,n-h-k) on R-path. A Q-path and a R-path do not meet if pair of grid paths does not contain common points other than at starting and finishing.
LINKS
Pontus von Brömssen, Illustration for n=4.
Pontus von Brömssen, Illustration for n=5.
Janaka Rodrigo, Python code for pairs (Q,R) of strings of coordinates
EXAMPLE
n = 2 has only one way of reaching a corner from other two corners:
Grid paths from B to A:
Q1:{(2,0), (1,1), (0,1), (0,0)},
Q2:{(2,0), (1,0), (0,1), (0,0)},
Q3:{(2,0), (1,0), (0,0)}.
Grid paths from C to A:
R1:{(0,2), (1,1), (1,0), (0,0)},
R2:{(0,2), (0,1), (1,0), (0,0)},
R3:{(0,2), (0,1), (0,0)}.
Set of valid pairs of grid paths:
{(Q3,R3)}.
Therefore a(2) = 1.
CROSSREFS
KEYWORD
nonn,walk,more
AUTHOR
Janaka Rodrigo, Apr 20 2026
EXTENSIONS
a(9)-a(10) from Sean A. Irvine, May 14 2026
a(11) from Pontus von Brömssen, May 15 2026
STATUS
approved
