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.

User: Sook Min

Sook Min's wiki page.

Sook Min has authored 1 sequences.

A347546 Number of involutions of doubly alternating Baxter permutations of length n.

Original entry on oeis.org

1, 1, 1, 1, 2, 2, 3, 5, 8, 12, 16, 32, 44, 84, 105, 231, 292, 636, 768, 1792, 2166, 5080, 6012, 14592, 17234, 42198, 49336, 123088, 143536, 361190, 418971, 1066497, 1234242, 3164870, 3651296, 9436968, 10866726, 28255468, 32469716, 84925632, 97443786, 256131058
Offset: 0

Author

Sook Min, Sep 06 2021

Keywords

Crossrefs

Cf. A001181.

Programs

  • Python
    def b(n):
        if (0<=n<=3):
            return 1
        if (n==4):
            return 2
        if (n%2==1):
          t=0
          for k in range(1, ((n+1)//2)):
              t+=b(2*k-2)*b(n-2*k)
          return t
        else:
            s=0
            for j in range(round(n/4), (n//2)):
                s+=b(4*j-n)*b(n-2*j-1)
            return b(n-1)+s
    for i in range(30):
        print(str(i)+': '+str(b(i)))