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-3 of 3 results.

A322107 Denominator of the least possible squared diameter of an enclosing circle of a strictly convex lattice n-gon. Numerators are A322106.

Original entry on oeis.org

1, 1, 9, 1, 1, 1, 49, 1, 1, 1, 49, 1, 1, 1, 1369, 121, 9801, 1, 49, 1, 1, 1, 1521, 1, 5329, 1, 5929, 1, 3844, 1
Offset: 3

Views

Author

Hugo Pfoertner, Nov 26 2018

Keywords

Examples

			See A322106.
		

Crossrefs

Extensions

a(27)-a(32) from Hugo Pfoertner, Dec 19 2018

A070911 a(n) is twice the least possible area enclosed by a convex lattice n-gon.

Original entry on oeis.org

1, 2, 5, 6, 13, 14, 21, 28, 43, 48, 65, 80, 103, 118, 151, 174, 213, 242, 289, 328, 387, 420, 497, 548, 625, 690, 783, 860, 967, 1046, 1177, 1264, 1409, 1498, 1671, 1780, 1955, 2078, 2279, 2444, 2651, 2824, 3051, 3240, 3493, 3676, 3969, 4176, 4489, 4714, 5045, 5302, 5623, 5906
Offset: 3

Views

Author

Pierre Bornsztein (pbornszt(AT)club-internet.fr), May 20 2002

Keywords

Comments

A convex lattice n-gon is a polygon whose n vertices are points on the integer lattice Z^2 and whose interior angles are strictly less than Pi.
For the even-indexed values, see A089187. The precisely known odd values were a(3)=1 (trivial), a(5)=5 and a(7)=13 (Arkinstall), a(9)=21 (Rabinowitz), a(11)=43 (Olszewska), a(13)=65 (Simpson), and a(15)=103 (Castryck). Additional values up to a(25) were first obtained as upper bounds "by massive calculations with several independent search programs" by Hugo Pfoertner. Pfoertner has made nice pictures of the best polygons he has found. See his link below. - Jamie Simpson, Dec 08 2022, adapted by Günter Rote, Sep 18 2023
From Günter Rote, Sep 18 2023: (Start)
The values a(n) can be computed in time polynomial in n by an algorithm of Eppstein, Overmars, Rote, and Woeginger from 1992: They showed how to compute the smallest convex n-gon in a set of N points in O(nN^3) time. The N points can be taken as an O(n^2) X O(n^2) grid: Each dimension of the bounding rectangle must be at least n/2, because a horizontal or vertical line can contain at most two vertices; since the area is known to be bounded by n^3, the other dimension cannot exceed 4n^2. In our case, the runtime can be reduced to O(nN^2), since the lowest vertex can be assumed to be a fixed point, say, the origin. By considering the lattice width, the grid can be reduced to size N=O(n^2) X O(n^1.5). Overall, this yields a theoretical runtime bound of O(n^8), for reporting all k-gons up to size n. This estimate agrees roughly with the observed runtimes in practice.
I have implemented the algorithm in Python and uploaded the program to the Code Golf Stackexchange site. It runs up to a(40) in a couple of minutes and produces some smallest polygon for each n. The values up to a(102) have been computed on a workstation in 31 hours. (End)

Crossrefs

See A089187 for the even-indexed subsequence. See A063984 for further information.

Formula

a(n)/2 = A063984(n) + n/2 - 1. [Simpson]
See Bárány and Tokushige for asymptotics.

Extensions

Additional comments from Steven Finch, Dec 06 2003
a(11)-a(20) from Hugo Pfoertner, Nov 26 2018
a(21)-a(25) from Hugo Pfoertner, Dec 02 2018
a(13), a(26) and virtually all terms with even n up to a(42) (as given in A089187) go back to Jamie Simpson, Dec 07 2003
Data section cut at n=16 by N. J. A. Sloane, Dec 21 2022
a(17)-a(26) restored and a(27) onwards added by Günter Rote, Sep 18 2023

A386538 a(n) is the maximum possible area of a polygon within a circle of radius n, where both the center and the vertices lie on points of a unit square grid.

Original entry on oeis.org

0, 2, 8, 24, 42, 74, 104, 138, 186, 240, 304, 362, 424, 512, 594, 690, 776, 880, 986, 1104, 1232, 1346, 1490, 1624, 1762, 1930, 2088, 2256, 2418, 2594, 2784, 2962, 3170, 3368, 3584, 3810, 4008, 4248, 4466, 4730, 4976, 5210, 5474, 5736, 6024, 6306, 6570, 6864, 7154
Offset: 0

Views

Author

Felix Huber, Aug 05 2025

Keywords

Comments

a(n) > 99% of the circle area for n >= 50.
Conjecture: The maximum possible area of a polygon within the circle would be the same if only the vertices but not the center were fixed on grid points.
All terms are even.

Examples

			See linked illustration of the term a(4) = 42.
		

Crossrefs

Programs

  • Maple
    A386538:=proc(n)
        local x,y,p,s;
        p:=4*n;
        s:={};
        for x to n do
            y:=floor(sqrt(n^2-x^2));
            p:=p+4*y;
            s:=s union {y}
        od;
        return p-2*nops(s)
    end proc;
    seq(A386538(n),n=0..48);
  • Mathematica
    a[n_] := Module[{p=4n},s = {}; Do[ y = Floor[Sqrt[n^2 - x^2]];p = p + 4*y;s = Union[s, {y}],{x,n} ];p - 2*Length[s]];Array[a,49,0] (* James C. McMahon, Aug 19 2025 *)

Formula

a(n) = A386539(A000217(n)) = A386539(n,n) for n >= 1.
a(n) <= A066643(n).
Showing 1-3 of 3 results.