%I #31 Jan 24 2024 23:49:11
%S 1,2,18,86
%N We draw n non-crossing straight line segments inside an n X n square between 2*n grid points on its perimeter, allowing no more similar connections between the remaining perimeter grid points. a(n) is the count of distinct possibilities for each n without duplicates by rotation or reflection.
%C The square figures with the line segments running inside them can be imagined as modernist windows of a house with irregularly divided glass panes. Any one of them, whether rotated in the vertical plane or viewed from the "inside" or the "outside", counts as distinct if no other window looks the same with similar transpositions.
%C Observation: Taken any one configuration that makes up such a window, if we count the grid divisions along and around the window frame between the consecutive 2*n end points of the n line segments (or window bars), it will add up to 4*n. More important than this obvious fact, is that this is essentially partitioning 4*n into 2*n parts such that these parts may range from 1 through n+2. Latter is the upper limit because any greater value would indicate missing extra window bars at the corners, which is not permitted by the definition. Therefore it appears that solving the enumerating problem of this sequence may involve reduced partitions under the given constraints. In the Example section, this count is shown for 3 X 3 windows.
%C For every n, an easily sorted special table may help eliminating duplicates in manual or programmed enumeration alike, inasmuch it lists for each candidate configuration the number of line segments having specific "steepness". This ratio value describes the proportions of the grid-aligned bounding box of a line segment, not necessarily taking into account its orientation. For example, this value for a line segment running along a grid line between two opposite sides will have the form of 0/n, while for another one, the smallest possible that is just cutting a corner, will be shown as 1/1, and so on. Below is shown such a table for n=3, with the 18 distinct configurations counted. In this comparison table, some of the windows have identical set of window bars, yet the relative positions of these are different, as can be seen on the linked illustration.
%C .
%C | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
%C ____|_______________________________________________________________________
%C |
%C 0/3 | 1
%C 1/1 | 2 2 2 1 2 1 1 1 1 1 1
%C 1/2 | 1 2 2 2 1 2 1 1 1 2 1
%C 1/3 | 1 1 3 1 1 1 1 1 2 2 1
%C 2/2 | 1
%C 2/3 | 1 1 1 1
%C 3/3 | 1 1
%C .
%H Tamas Sandor Nagy, <a href="/A357757/a357757_1.png">Illustration for a(1) to a(3)</a>
%e a(1) = 1 because only one non-crossing straight line segment can be drawn inside a 1 X 1 square between its perimeter grid points, namely, one of its diagonals. Rotating or reflecting this figure will not result in another distinct shape to be counted.
%e a(2) = 2 because there are two distinct configurations. In the first one, two parallel line segments run from opposite corners to the midpoints on the sides of the 2 X 2 square. In the second, one line segment connects two neighboring side midpoints, while the other runs from a corner to a third midpoint, not crossing the former. In both cases, no further line segment may fit without crossing the existing ones.
%e Count of grid divisions around the 18 distinct 3 X 3 window frames between the window bars:
%e .
%e 2, 1, 5, 1, 2, 1
%e 2, 2, 4, 1, 2, 1
%e 2, 3, 3, 1, 2, 1
%e 1, 3, 2, 2, 3, 1
%e 2, 1, 3, 2, 1, 3
%e 2, 3, 1, 2, 3, 1
%e 4, 1, 1, 4, 1, 1
%e 2, 1, 2, 3, 1, 3
%e 3, 1, 2, 3, 1, 2
%e 3, 2, 3, 1, 2, 1
%e 4, 1, 3, 1, 2, 1
%e 2, 1, 1, 4, 2, 2
%e 3, 1, 1, 4, 2, 1
%e 2, 1, 1, 4, 1, 3
%e 3, 1, 1, 4, 1, 2
%e 1, 1, 2, 1, 3, 4
%e 3, 1, 3, 3, 1, 1
%e 2, 1, 3, 3, 1, 2
%e .
%K nonn,more
%O 1,2
%A _Tamas Sandor Nagy_, Nov 26 2022