login
A378148
a(n) is the number of distinct trapezoids having integer sides and height with exactly one pair of parallel sides and area n.
4
0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 1, 0, 1, 2, 1, 0, 3, 0, 1, 2, 1, 0, 3, 0, 1, 2, 1, 0, 4, 0, 2, 2, 1, 1, 5, 0, 1, 2, 3, 0, 5, 0, 2, 3, 1, 0, 6, 0, 2, 2, 2, 0, 7, 1, 3, 2, 1, 0, 9, 0, 1, 3, 3, 2, 8, 0, 3, 2, 3, 0, 10, 0, 1, 5, 3, 0, 9, 0, 6, 3, 1, 0, 10, 2, 1, 2
OFFSET
1,15
COMMENTS
The number of trapezoids having integer sides and height, which are neither right-angled nor isosceles, is a(n) - A378149(n) - A378150(n). The first trapezoid, which is neither right-angled nor isosceles, appears at a(36).
a(p) = 0 for prime p. Proof: Suppose there is a trapezoid with integer sides and prime area p. Then in p = m*h (m is the average of the parallel sides and h is the height of the trapezoid) m = p and h = 1 or m = p/2 and h = 2. At least one nonparallel side of the trapezoid is the hypotenuse of a right triangle with leg h. Legs in integer right triangles are >= 3. This is a contradiction and therefore a(p) = 0.
A214602 is the index of the positive terms in this sequence.
There are also integer-sided trapezoids with integer area that do not have an integer height. For example, the trapezoid with sides p = 630, d = 615, q = 5, f = 40 (p and q are parallel) has an area of 12192 and a height of h = 38.4.
LINKS
FORMULA
a(p) = 0 for prime p.
EXAMPLE
a(54) = 7 because there are 7 distinct trapezoids [p, d, q, f, h] (p and q are parallel, height h) having integer sides and height with area 54:[17, 10, 1, 10, 6], [13, 6, 5, 10, 6], [22, 5, 14, 5, 3], [20, 3, 16, 5, 3], [8, 15, 1, 20, 12], [7, 12, 2, 13, 12], [15, 4, 12, 5, 4].
For a(54) = 7 and (92) = 4 see the linked illustrations.
See also the linked Maple program "Trapezoids having integer sides and height with area n".
MAPLE
A378148:=proc(n)
local a, m, p, q, h, x, y, M;
a:=0;
M:=map(x->x/2, NumberTheory:-Divisors(2*n) minus {1, 2});
for m in M do
for q from 1 to m-1/2 do
p:=2*m-q;
h:=n/m;
for x from max(3, floor((p-q+1)/2)) to (h^2-1)/2 do
y:=p-q-x;
if issqr(x^2+h^2) and issqr(y^2+h^2) then
a:=a+1
fi
od
od
od;
return a
end proc;
seq(A378148(n), n=1..87);
KEYWORD
nonn
AUTHOR
Felix Huber, Dec 02 2024
STATUS
approved