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.

A211357 Triangle read by rows: T(n,k) is the number of noncrossing partitions up to rotation of an n-set that contain k singleton blocks.

Original entry on oeis.org

1, 0, 1, 1, 0, 1, 1, 1, 0, 1, 2, 1, 2, 0, 1, 2, 3, 2, 2, 0, 1, 5, 6, 9, 4, 3, 0, 1, 6, 15, 18, 15, 5, 3, 0, 1, 15, 36, 56, 42, 29, 7, 4, 0, 1, 28, 91, 144, 142, 84, 42, 10, 4, 0, 1, 67, 232, 419, 432, 322, 152, 66, 12, 5, 0, 1, 145, 603, 1160, 1365, 1080, 630, 252, 90, 15, 5, 0, 1
Offset: 0

Views

Author

Tilman Piesk, Apr 12 2012

Keywords

Examples

			From _Andrew Howroyd_, Nov 16 2017: (Start)
Triangle begins: (n >= 0, 0 <= k <= n)
   1;
   0,   1;
   1,   0,   1;
   1,   1,   0,   1;
   2,   1,   2,   0,   1;
   2,   3,   2,   2,   0,   1;
   5,   6,   9,   4,   3,   0,  1;
   6,  15,  18,  15,   5,   3,  0,  1;
  15,  36,  56,  42,  29,   7,  4,  0, 1;
  28,  91, 144, 142,  84,  42, 10,  4, 0, 1;
  67, 232, 419, 432, 322, 152, 66, 12, 5, 0, 1;
(End)
		

Crossrefs

Column k=0 is A295198.
Row sums are A054357.
Cf. A091867 (noncrossing partitions of an n-set with k singleton blocks), A211359 (up to rotations and reflections).
Cf. A171128.

Programs

  • Mathematica
    a91867[n_, k_] := If[k == n, 1, (Binomial[n + 1, k]/(n + 1)) Sum[Binomial[n + 1 - k, j] Binomial[n - k - j - 1, j - 1], {j, 1, (n - k)/2}]];
    a2426[n_] := Sum[Binomial[n, 2*k]*Binomial[2*k, k], {k, 0, Floor[n/2]}];
    a171128[n_, k_] := Binomial[n, k]*a2426[n - k];
    T[0, 0] = 1;
    T[n_, k_] := (1/n)*(a91867[n, k] - a171128[n, k] + Sum[EulerPhi[d]* a171128[n/d, k/d], {d, Divisors[GCD[n, k]]}]);
    Table[T[n, k], {n, 0, 11}, {k, 0, n}] // Flatten (* Jean-François Alcover, Jul 03 2018, after Andrew Howroyd *)
  • PARI
    g(x,y) = {1/sqrt((1 - (1 + y)*x)^2 - 4*x^2) - 1}
    S(n)={my(A=(1-sqrt(1-4*x/(1-(y-1)*x) + O(x^(n+2))))/(2*x)-1); Vec(1+intformal((A + sum(k=2, n, eulerphi(k)*g(x^k + O(x*x^n), y^k)))/x))}
    my(v=S(10)); for(n=1, #v, my(p=v[n]); for(k=0, n-1, print1(polcoeff(p,k), ", ")); print) \\ Andrew Howroyd, Nov 16 2017

Formula

T(n,k) = (1/n)*(A091867(n,k) - A171128(n,k) + Sum_{d|gcd(n,k)} phi(d) * A171128(n/d, k/d)) for n > 0. - Andrew Howroyd, Nov 16 2017

A303931 Number of noncrossing partitions up to rotation and reflection of an n-set without singleton blocks.

Original entry on oeis.org

1, 0, 1, 1, 2, 2, 5, 6, 14, 22, 51, 95, 232, 498, 1239, 2953, 7520, 18920, 49235, 127917, 338094, 896060, 2397627, 6439730, 17403252, 47207620, 128628877, 351676075, 964909660, 2655474962, 7329668097, 20285420790, 56284927718, 156539620498, 436343744531
Offset: 0

Views

Author

Andrew Howroyd, May 02 2018

Keywords

Crossrefs

Column k=0 of A211359.

Programs

  • PARI
    \\ See A303875 for NCPartitionsModDihedral
    Vec(NCPartitionsModDihedral(vector(40, k, k>1))) \\ Andrew Howroyd, May 02 2018

A303874 Number of noncrossing partitions of an n-set up to rotation with all blocks having a prime number of elements.

Original entry on oeis.org

1, 0, 1, 1, 1, 2, 3, 5, 8, 17, 37, 71, 179, 366, 919, 2069, 5027, 12053, 29098, 71846, 175485, 437438, 1087122, 2723326, 6860525, 17301606, 43957596, 111748571, 285591775, 731432424, 1879009622, 4841510973, 12500324496, 32366232373, 83962263464, 218309244314
Offset: 0

Views

Author

Andrew Howroyd, May 01 2018

Keywords

Comments

The number of such noncrossing partitions counted distinctly is given by A210737.

Crossrefs

Cf. A054357 (unrestricted), A175954 (1 or 2), A210737, A295198, A303875.

Programs

  • PARI
    \\ number of partitions with restricted block sizes
    NCPartitionsModCyclic(v)={ my(n=#v);
    my(p=serreverse(x/(1 + sum(k=1, #v, x^k*v[k])) + O(x^2*x^n) )/x);
    my(vars=variables(p));
    my(varpow(r,d)=substvec(r + O(x^(n\d+1)), vars, apply(t->t^d, vars)));
    my(q=x*deriv(p)/p);
    my(T=sum(k=1, #v, my(t=v[k]); if(t, x^k*t*sumdiv(k, d, eulerphi(d) * varpow(p,d)^(k/d))/k)));
    T + 2 + intformal(sum(d=1,n,eulerphi(d)*varpow(q,d))/x) - p
    }
    Vec(NCPartitionsModCyclic(vector(40, k, isprime(k))))
Showing 1-3 of 3 results.