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.

A379707 Number of nonempty labeled antichains of subsets of [n] such that all subsets except possibly those of the largest size are disjoint.

Original entry on oeis.org

1, 2, 5, 19, 133, 2605, 1128365, 68731541392, 1180735736455875189405, 170141183460507927984536600089529165335, 7237005577335553223087828975127304180898559033209149835788539833222132944557
Offset: 0

Views

Author

John Tyler Rascoe, Dec 30 2024

Keywords

Examples

			For n < 4 all nonempty labeled antichains are counted. When n=6 antichains such as {{1,2,6},{1,4},{1,5}} are not counted, while {{1,2,4},{1,2,6},{3},{5}} is counted.
		

Crossrefs

Programs

  • Python
    from math import comb
    def rS2(n,k,m):
        if n < 1 and k < 1: return 1
        elif n < 1 or k < 1: return 0
        else: return k*rS2(n-1,k,m) + rS2(n-1,k-1,m)- comb(n-1,m)*rS2(n-1-m,k-1,m)
    def A229223(n,k):
        return sum(rS2(n,x,k) for x in range(n+1))
    def A379707(n):
        return 1+sum(sum(comb(n,i)*(2**comb(n-i,s)-1)*A229223(i,s-1) for i in range(n-s+1)) for s in range(1,n+1))

Formula

a(n) = 1 + Sum_{s=1..n} (Sum_{i=0..n-s} binomial(n,i) * (2^binomial(n-i,s) - 1) * A229223(i,s-1)).

A379712 Triangle read by rows: T(n,k) is the number of nonempty labeled antichains of subsets of [n] such that the largest subset is of size k.

Original entry on oeis.org

1, 1, 1, 1, 3, 1, 1, 7, 10, 1, 1, 15, 97, 53, 1, 1, 31, 1418, 5443, 686, 1, 1, 63, 40005, 3701128, 4043864, 43291, 1
Offset: 0

Views

Author

John Tyler Rascoe, Dec 30 2024

Keywords

Examples

			Triangle begins:
   k=0   1     2     3    4  5
 n=0 1;
 n=1 1,  1;
 n=2 1,  3,    1;
 n=3 1,  7,   10,    1;
 n=4 1, 15,   97,   53,   1;
 n=5 1, 31, 1418, 5443, 686, 1;
 ...
T(3,0) =  1: {{}}.
T(3,1) =  7: {{1}}, {{2}}, {{3}}, {{1},{2}}, {{1},{3}}, {{2},{3}}, {{1},{2},{3}}.
T(3,2) = 10: {{1,2}}, {{1,3}}, {{2,3}}, {{1},{23}}, {{2},{13}}, {{3},{12}}, {{12},{13}}, {{12},{23}}, {{13},{23}}, {{12},{13},{23}}.
T(3,3) =  1: {{1,2,3}}.
		

Crossrefs

Cf. (column k=1) A000225, A000372, (row sums) A014466, A327806, (column k=2) A379706.

Programs

  • Python
    # see links
Showing 1-2 of 2 results.