OFFSET
1,4
COMMENTS
A diagonal lattice rectangle is a rectangle with integer coordinates and no side parallel to the x-axis.
This sequence gives the row lengths of A338885.
LINKS
Peter Kagey, Table of n, a(n) for n = 1..1000
Code Golf Stack Exchange, Rectangles in rectangles
FORMULA
a(n) >= A338887(n).
EXAMPLE
For n = 5 there are a(5) = 3 different y-values that appear in the coordinates of diagonal lattice rectangles that touch the x-axis, the y-axis, and the line x = 5. An example of each, listed by vertices counterclockwise:
y_max = 4: (4,4), (0,2), (1,0), (5,2);
y_max = 5: (4,5), (0,4), (1,0), (5,1);
y_max = 7: (3,7), (0,6), (2,0), (5,1).
CROSSREFS
KEYWORD
nonn
AUTHOR
Peter Kagey, Nov 14 2020
STATUS
approved
