A378148 a(n) is the number of distinct trapezoids having integer sides and height with exactly one pair of parallel sides and area n.
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
Keywords
Examples
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".
Links
- Felix Huber, Table of n, a(n) for n = 1..10000
- Felix Huber, Illustration of a(54) = 7
- Felix Huber, Illustration of a(92) = 4
- Felix Huber, Trapezoids having integer sides and height with area n
- Eric Weisstein's World of Mathematics, Trapezoid
Crossrefs
Programs
-
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);
Formula
a(p) = 0 for prime p.
Comments