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

A053416 Circle numbers (version 4): a(n)= number of points (i+j/2,j*sqrt(3)/2), i,j integers (triangular grid) contained in a circle of diameter n, centered at (0,0).

Original entry on oeis.org

1, 1, 7, 7, 19, 19, 37, 43, 61, 73, 91, 109, 127, 151, 187, 199, 241, 253, 301, 313, 367, 397, 439, 475, 517, 571, 613, 661, 721, 757, 823, 859, 931, 979, 1045, 1111, 1165, 1237, 1303, 1381, 1459, 1519, 1615, 1663, 1765, 1813, 1921, 1993, 2083, 2173, 2263
Offset: 0

Views

Author

Klaus Strassburger (strass(AT)ddfi.uni-duesseldorf.de), Jan 10 2000

Keywords

Comments

In other words, number of points in a hexagonal lattice covered by a circle of diameter n if the center of the circle is chosen at a grid point. - Hugo Pfoertner, Jan 07 2007
Same as above but "number of disks (r = 1)" instead of "number of points". See illustration in links. - Kival Ngaokrajang, Apr 06 2014

Crossrefs

Cf. A053411, A053414, A053415, A053417, A053458 (open disk), A308685 (bisection).

Programs

  • Maple
    A053416 := proc(d)
        local a,j,imin,imax ;
        a := 0 ;
        for j from -floor(d/sqrt(3)) do
            if j^2*3 > d^2 and j> 0 then
                break ;
            end if;
            imin := ceil((-j-sqrt(d^2-3*j^2))/2) ;
            imax := floor((-j+sqrt(d^2-3*j^2))/2) ;
            a := a+imax-imin+1 ;
        end do:
        a ;
    end proc:
    seq(A053416(d),d=0..30) ; # R. J. Mathar, Nov 22 2022
  • Mathematica
    a[n_] := Sum[Boole[4*(i^2 + i*j + j^2) <= n^2], {i, -n, n}, {j, -n, n}];
    Table[a[n], {n, 0, 100}] (* Jean-François Alcover, Jun 06 2013, updated Apr 08 2022 to correct a discrepancy wrt b-file noticed by Georg Fischer *)

Formula

a(n)/(n/2)^2->Pi*2/sqrt(3).
a(n) >= A053458(n). - R. J. Mathar, Nov 22 2022
a(2*n) = A308685(n). - R. J. Mathar, Nov 22 2022

Extensions

Edited by N. J. A. Sloane, Jul 03 2008 at the suggestion of R. J. Mathar

A053456 Open disk numbers (version 1): a(n) is the number of points (i,j), i,j, integers, contained in an open disk of diameter n, centered at (0,0).

Original entry on oeis.org

0, 1, 1, 9, 9, 21, 25, 37, 45, 69, 69, 97, 109, 137, 145, 177, 193, 225, 249, 293, 305, 349, 373, 421, 437, 489, 517, 577, 609, 665, 697, 749, 793, 861, 889, 973, 1005, 1085, 1125, 1201, 1245, 1313, 1369, 1457, 1513, 1597, 1649, 1741, 1789, 1885, 1941
Offset: 0

Views

Author

Klaus Strassburger (strass(AT)ddfi.uni-duesseldorf.de), Jan 13 2000

Keywords

Crossrefs

Bisections: A051132, A036704.
Cf. A000796 (Pi).

Formula

a(n)/(n/2)^2->Pi.

A053457 Open disk numbers (version 2): a(n) is the number of points (i,j), i,j, integers, contained in an open disk of diameter n, centered at (0,1/2).

Original entry on oeis.org

0, 0, 2, 6, 12, 16, 26, 38, 48, 60, 78, 94, 108, 128, 154, 174, 196, 224, 250, 278, 312, 344, 378, 410, 452, 484, 526, 574, 612, 652, 698, 754, 800, 848, 906, 958, 1012, 1068, 1130, 1190, 1252, 1316, 1378, 1446, 1516, 1588, 1654, 1730, 1808, 1880, 1954
Offset: 0

Views

Author

Klaus Strassburger (strass(AT)ddfi.uni-duesseldorf.de), Jan 13 2000

Keywords

Comments

a(n)/(n/2)^2->Pi

Crossrefs

A053459 Open disk numbers (version 4): a(n) is the number of points (i+j/2,j*sqrt(3)/2), i,j integers (triangular grid) contained in an open disk of diameter n, centered at (1/2,0).

Original entry on oeis.org

0, 0, 4, 8, 14, 22, 30, 42, 60, 74, 92, 108, 130, 148, 178, 206, 230, 262, 288, 324, 364, 400, 442, 480, 522, 562, 614, 662, 712, 764, 812, 868, 922, 988, 1050, 1106, 1176, 1234, 1312, 1376, 1452, 1528, 1598, 1678, 1750, 1838, 1920, 2006, 2092, 2172, 2266
Offset: 0

Views

Author

Klaus Strassburger (strass(AT)ddfi.uni-duesseldorf.de), Jan 13 2000

Keywords

Comments

a(n)/(n/2)^2 -> Pi*2/sqrt(3).

Crossrefs

A267803 Number of unit hexagonal lattice cells (hexagon in the origin) enclosed by origin centered circle of radius n.

Original entry on oeis.org

1, 1, 7, 13, 19, 31, 43, 61, 85, 97, 121, 151, 175, 211, 241, 271, 313, 349, 385, 439, 499, 535, 583, 649, 691, 757, 823, 877, 955, 1027, 1087, 1159, 1249, 1321, 1401, 1483, 1561, 1663, 1765, 1827, 1945, 2053, 2133, 2233, 2347, 2443, 2563, 2677, 2779, 2905
Offset: 1

Views

Author

Luca Petrone, Jan 20 2016

Keywords

Crossrefs

Cf. A248897 (2*Pi/(3*sqrt(3))).

Formula

Limit_{n->oo} a(n)/(n^2) = 2*Pi/(3*sqrt(3)).
Showing 1-5 of 5 results.