cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A378149 a(n) is the number of distinct integer-sided right trapezoids with exactly one pair of parallel sides and area n.

Original entry on oeis.org

0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 1, 0, 1, 1, 0, 0, 2, 0, 0, 1, 1, 0, 1, 0, 1, 1, 0, 0, 3, 0, 1, 1, 1, 1, 2, 0, 1, 1, 2, 0, 4, 0, 0, 2, 1, 0, 3, 0, 2, 1, 0, 0, 4, 1, 1, 1, 1, 0, 3, 0, 1, 2, 1, 1, 5, 0, 1, 1, 2, 0, 4, 0, 1, 3, 1, 0, 5, 0, 2, 2, 1, 0, 3, 1, 1, 1
Offset: 1

Views

Author

Felix Huber, Dec 04 2024

Keywords

Examples

			a(54) = 4 because there are 4 distinct integer-sided right trapezoids [p, r, q, d, h] (p and q are parallel, r is rectangular to p and q, height h = r) with area 54: [13, 6, 5, 10, 6], [20, 3, 16, 5, 3], [7, 12, 2, 13, 12], [15, 4, 12, 5, 4].
		

Crossrefs

Programs

  • Maple
    A378149:=proc(n)
       local a,m,q,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-3/2 do
             if issqr((2*(m-q))^2+(n/m)^2) then
                a:=a+1
             fi
          od
       od;
       return a
    end proc;
    seq(A378149(n),n=1..87);

Formula

a(p) = 0 for prime p.