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.

A330662 Triangle read by rows: T(n,k) is the number of polygons with 2*n sides, of which k run through the center of a circle, on the circumference of which the 2*n vertices of the polygon are arranged at equal spacing.

Original entry on oeis.org

0, 0, 1, 1, 0, 2, 16, 24, 12, 8, 744, 960, 576, 192, 48, 56256, 69120, 39360, 13440, 2880, 384, 6385920, 7580160, 4204800, 1420800, 316800, 46080, 3840, 1018114560, 1178956800, 642539520, 216115200, 49190400, 7741440, 806400, 46080
Offset: 0

Views

Author

Ludovic Schwob, Dec 23 2019

Keywords

Comments

Rotations and reflections are counted separately.
By "2*n-sided polygons" we mean the polygons that can be drawn by connecting 2*n equally spaced points on a circle.
T(0,0)=0 and T(0,1)=1 by convention.
The sequence is limited to even-sided polygons, since all odd-sided polygons have no side passing through the center.

Examples

			Triangle begins:
    0;
    0,   1;
    1,   0,   2;
   16,  24,  12,   8;
  744, 960, 576, 192, 48;
		

Crossrefs

Row sums give A001710(2*n-1) (number of polygons with 2*n sides).
Cf. A000165 (diagonal).
Star polygons: A014106, A055684, A102302.
Cf. A309318.

Programs

  • Maple
    T := (n, k) -> `if`(n<2, k, 2^(k-1)*binomial(n,k)*(2*n-k-1)!*hypergeom([k-n], [k-2*n+ 1], -2)):
    seq(seq(simplify(T(n,k)), k=0..n),n=0..7); # Peter Luschny, Jan 07 2020

Formula

T(n,n) = 2^(n-1) * (n-1)! for all n >= 1.
T(n,0) = A307923(n) for all n>=1.
T(n,k) = binomial(n,k)* Sum_{i=k..n} (-1)^(i-k)*binomial(n-k,i-k)*(2n-1-i)!*2^(i-1), for n>=2 and 0<=k<=n.

A343369 Triangle read by rows: T(n,k) is the number of polygons formed by connecting the vertices of a regular 2n-gon such that the winding number around the center is k and with no side passing through the center.

Original entry on oeis.org

0, 0, 1, 6, 10, 0, 296, 391, 56, 1, 21580, 28298, 6132, 246, 0, 2317884, 3137098, 859536, 70389, 1012, 1, 349281380, 490054052, 158307216, 19756138, 711692, 4082, 0, 70651004192, 102443715659, 37521267472, 6221752657, 390266848, 6782563, 16368, 1
Offset: 1

Views

Author

Ludovic Schwob, Apr 12 2021

Keywords

Comments

Polygons that differ by rotation or reflection are counted separately.
T(1,0)=0 by convention.

Examples

			Triangle begins:
      0;
      0,     1;
      6,    10,    0;
    296,   391,   56,   1;
  21580, 28298, 6132, 246,   0;
		

Crossrefs

Row sums are A307923.
Cf. A330660.

Programs

  • PARI
    T(n)={
      local(Cache=Map());
      my(dir(p,q)=if(p=n&&qp-n, 1/'x, 1)));
      my(recurse(k,p,b) = my(hk=[k,p,b], z); if(!mapisdefined(Cache, hk, &z),
      z = if(k==0, p<>n, sum(q=1, 2*n-1, if(!bittest(b,q) && (q-p)%n, dir(p,q)*self()(k-1, q, b+(1<Andrew Howroyd, May 14 2021

Formula

T(2*n,2*n-1) = 1 and T(2*n+1,2*n) = 0 for all n>=1.
T(n,n-2) = 4^(n-1)-2*n for all n>=2.

Extensions

a(22)-a(36) from Andrew Howroyd, May 14 2021
Showing 1-2 of 2 results.