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.

Showing 1-2 of 2 results.

A374594 Areas of trapezoids with integer sides and height whose area equals their perimeter.

Original entry on oeis.org

16, 18, 18, 20, 20, 24, 30, 30, 36, 48, 70, 90, 180, 180, 420, 528, 870, 1170, 2610
Offset: 1

Views

Author

Felix Huber, Jul 13 2024

Keywords

Comments

A trapezoid is a quadrilateral with at least one pair of parallel sides.
Conjecture: in this sequence are only four terms which belong to trapezoids with exactly one pair of parallel sides: a(2) = 18, a(4) = 20, a(6) = 24, a(7) = 30.

Examples

			See attached illustration of the terms a(1) to a(11).
		

Crossrefs

Programs

  • Maple
    with(NumberTheory):
    A374594:=proc(k);
      local K,L,S,T,i,a,c,x,y,h,b,d;
      L:=map(x->x/2, Divisors(2*k) minus {1, 2});
      S:=[];
      T:=[];
      K:=[];
      for i to numelems(L) do
        for c to L[i] do
          a:=2*L[i]-c;
          h:=k/L[i];
          x:=0;
          while x^2<(k-a-c)^2-h^2 do
            if issqr(x^2+h^2) then
              d:=isqrt(x^2+h^2);
              b:=k-a-c-d;
              y:=a-c-x;
              if h^2+y^2=b^2 then
                S:=[a,b,c,d];
                S:=sort(S);
                if member(S,T)=false then
                  T:=[op(T),S];
                  K:=[op(K),k];
                fi;
              fi;
            fi;
            x:=x+1;
          od;
        od;
      od;
      if numelems(K)>0 then
        return op(K)
      fi;
    end proc;
    seq(A374594(k),k=1..3000);

Extensions

Corrected by Felix Huber, Dec 04 2024

A181945 Number of trapezoids, distinct up to congruence, on an n X n grid (or geoboard).

Original entry on oeis.org

0, 1, 9, 43, 141, 343, 766, 1415, 2517, 4129, 6545, 9505, 14230, 19444, 26733, 36208, 48029, 60675, 78729, 96866, 122433, 151288, 184072, 217998, 266775, 315096, 371138, 435153, 512549, 585240, 688470, 779196, 895058, 1019697, 1153081, 1305629, 1494185, 1656287
Offset: 1

Views

Author

Martin Renner, Apr 03 2012

Keywords

Examples

			a(1) = 0 because the 1 X 1 grid has no trapezoids.
a(2) = 1 because the 2 X 2 grid has one trapezoid.
a(3) = 9 because the 3 X 3 grid has 9 congruence classes of trapezoids, out of 50 trapezoids total:
+-------+-------+-------+
| . . . | . o . | . . . |
| o o . | o . . | o . o |
| o o . | o o . | o . o |
+-------+-------+-------+
| . . o | o . o | . o . |
| o . . | . . . | o o . |
| o . o | o . o | o . . |
+-------+-------+-------+
| . o o | . . o | . o . |
| o . . | o . o | o . o |
| o . . | o . . | . o . |
+-------+-------+-------+
		

Crossrefs

Extensions

a(7)-a(38) from Lucas A. Brown, Feb 05 2024
Showing 1-2 of 2 results.