OFFSET
0,5
COMMENTS
A polygon pair consists of either two rectangles, two non-rectangular right trapezoids, a right triangle and a non-rectangular right trapezoid, or a right triangle and a pentagon.
LINKS
Felix Huber, Table of n, a(n) for n = 0..10000
FORMULA
EXAMPLE
a(8) = 7. Place a square of side length 8 in a Cartesian coordinate system, axis-aligned, with its lower-left corner at the origin. The 7 straight cuts are the segments [(0, 1), (8, 1)], [(0, 2), (8, 2)], [(0, 3), (8, 3)], [(0, 4), (8, 4)], [(0, 0), (8, 6)], [(0, 1), (8, 7)] and [(0, 3), (4, 0)]. No further straight cut yields a distinct pair of integer-sided polygons.
MAPLE
A389672:=proc(N) # To get the terms a(0) to a(N)
local a, i, l, m, x, y, u, v;
if N=0 then return 0 fi;
l:=[];
for x from 2 to floor(sqrt(floor(sqrt(2*N^2-2*N+1)-1))) do
for y to x-1 while x^2+y^2<=floor(sqrt(2*N^2-2*N+1)-1) do
if gcd(x, y)=1 and is(x-y, odd) then
u:=min(x^2-y^2, 2*x*y);
v:=max(x^2-y^2, 2*x*y);
l:=[op(l), seq(i*[v, u], i=1..N/v)]
fi
od
od;
m:=sort([seq(l[i, 1], i=1..nops(l))]);
a:=Vector(N);
for i to N do
a(i):=floor(i/2)+nops(select(x->x<i, m))
od;
for i in l do
a(i[1]):=a(i[1])+floor((i[1]-i[2]+2)/2)
od;
return 0, op(convert(a, list))
end proc;
A389672(69);
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Felix Huber, Oct 14 2025
STATUS
approved
