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.

A274709 A statistic on orbital systems over n sectors: the number of orbitals which rise to maximum height k over the central circle.

Original entry on oeis.org

1, 1, 1, 1, 3, 3, 2, 3, 1, 10, 15, 5, 5, 9, 5, 1, 35, 63, 35, 7, 14, 28, 20, 7, 1, 126, 252, 180, 63, 9, 42, 90, 75, 35, 9, 1, 462, 990, 825, 385, 99, 11, 132, 297, 275, 154, 54, 11, 1, 1716, 3861, 3575, 2002, 702, 143, 13, 429, 1001, 1001, 637, 273, 77, 13, 1
Offset: 0

Views

Author

Peter Luschny, Jul 09 2016

Keywords

Comments

The definition of an orbital system is given in A232500 (see also the illustration there). The number of orbitals over n sectors is counted by the swinging factorial A056040.
Note that (sum row_n) / row_n(0) = 1,1,2,2,3,3,4,4,..., i.e. the swinging factorials are multiples of the extended Catalan numbers A057977 generalizing the fact that the central binomials are multiples of the Catalan numbers.
T(n, k) is a subtriangle of the extended Catalan triangle A189231.

Examples

			Triangle read by rows, n>=0. The length of row n is floor((n+2)/2).
[ n] [k=0,1,2,...] [row sum]
[ 0] [  1] 1
[ 1] [  1] 1
[ 2] [  1,   1] 2
[ 3] [  3,   3] 6
[ 4] [  2,   3,   1] 6
[ 5] [ 10,  15,   5] 30
[ 6] [  5,   9,   5,   1] 20
[ 7] [ 35,  63,  35,   7] 140
[ 8] [ 14,  28,  20,   7,  1] 70
[ 9] [126, 252, 180,  63,  9] 630
[10] [ 42,  90,  75,  35,  9,  1] 252
[11] [462, 990, 825, 385, 99, 11] 2772
[12] [132, 297, 275, 154, 54, 11, 1] 924
T(6, 2) = 5 because the five orbitals [-1, 1, 1, 1, -1, -1], [1, -1, 1, 1, -1, -1], [1, 1, -1, -1, -1, 1], [1, 1, -1, -1, 1, -1], [1, 1, -1, 1, -1, -1] raise to maximal height of 2 over the central circle.
		

Crossrefs

Cf. A008313, A039599 (even rows), A047072, A056040 (row sums), A057977 (col 0), A063549 (col 0), A112467, A120730, A189230 (odd rows aerated), A189231, A232500.
Other orbital statistics: A241477 (first zero crossing), A274706 (absolute integral), A274708 (number of peaks), A274710 (number of turns), A274878 (span), A274879 (returns), A274880 (restarts), A274881 (ascent).

Programs

  • Maple
    S := proc(n,k) option remember; `if`(k>n or k<0, 0, `if`(n=k, 1, S(n-1,k-1)+
    modp(n-k,2)*S(n-1,k)+S(n-1,k+1))) end: T := (n,k) -> S(n,2*k);
    seq(print(seq(T(n,k), k=0..iquo(n,2))), n=0..12);
  • Sage
    from itertools import accumulate
    # Brute force counting
    def unit_orbitals(n):
        sym_range = [i for i in range(-n+1, n, 2)]
        for c in Combinations(sym_range, n):
            P = Permutations([sgn(v) for v in c])
            for p in P: yield p
    def max_orbitals(n):
        if n == 0: return [1]
        S = [0]*((n+2)//2)
        for u in unit_orbitals(n):
            L = list(accumulate(u))
            S[max(L)] += 1
        return S
    for n in (0..10): print(max_orbitals(n))

A189231 Extended Catalan triangle read by rows.

Original entry on oeis.org

1, 1, 1, 1, 2, 1, 3, 2, 3, 1, 2, 8, 3, 4, 1, 10, 5, 15, 4, 5, 1, 5, 30, 9, 24, 5, 6, 1, 35, 14, 63, 14, 35, 6, 7, 1, 14, 112, 28, 112, 20, 48, 7, 8, 1, 126, 42, 252, 48, 180, 27, 63, 8, 9, 1, 42, 420, 90, 480, 75, 270, 35, 80, 9, 10, 1, 462, 132, 990, 165, 825, 110, 385, 44, 99, 10, 11, 1
Offset: 0

Views

Author

Peter Luschny, May 01 2011

Keywords

Comments

Let S(n,k) denote the coefficients of the positive powers of the Laurent polynomials C_n(x) = (x+1/x)^(n-1)*(x-1/x)*(x+1/x+n) (if n>0) and C_0(x) = 0.
Then T(n,k) = S(n+1,k+1) for n>=0, k>=0.
The classical Catalan triangle A053121(n,k) can be recovered from this triangle by setting T(n,k) = 0 if n-k is odd.
The complementary Catalan triangle A189230(n,k) can be recovered from this triangle by setting T(n,k) = 0 if n-k is even.
T(n,0) are the extended Catalan numbers A057977(n).

Examples

			The Laurent polynomials:
C(0,x) =                 0
C(1,x) =               x - 1/x
C(2,x) =         x^2 + x - 1/x - 1/x^2
C(3,x) = x^3 + 2 x^2 + x - 1/x - 2/x^2 -1/x^3
Triangle T(n,k) = S(n+1,k+1) starts
[0]   1,
[1]   1,  1,
[2]   1,  2,  1,
[3]   3,  2,  3,  1,
[4]   2,  8,  3,  4,  1,
[5]  10,  5, 15,  4,  5,  1,
[6]   5, 30,  9, 24,  5,  6,  1,
[7]  35, 14, 63, 14, 35,  6,  7, 1,
    [0],[1],[2],[3],[4],[5],[6],[7]
		

Crossrefs

Programs

  • Maple
    A189231_poly := (n,x)-> `if`(n=0,0,(x+1/x)^(n-2)*(x-1/x)*(x+1/x+n-1)):
    seq(print([n],seq(coeff(expand(A189231_poly(n,x)),x,k),k=1..n)),n=1..9);
    A189231 := proc(n,k) option remember; `if`(k>n or k<0, 0, `if`(n=k, 1, A189231(n-1,k-1)+modp(n-k,2)*A189231(n-1,k)+A189231(n-1,k+1))) end:
    seq(print(seq(A189231(n,k),k=0..n)),n=0..9);
  • Mathematica
    t[n_, k_] /; (k > n || k < 0) = 0; t[n_, n_] = 1; t[n_, k_] := t[n, k] = t[n-1, k-1] + Mod[n-k, 2]*t[n-1, k] + t[n-1, k+1]; Table[t[n, k], {n, 0, 11}, {k, 0, n}] // Flatten (* Jean-François Alcover, Jul 30 2013 *)

Formula

Recurrence: If k>n or k<0 then T(n,k) = 0 else if n=k then T(n,k) = 1; otherwise T(n,k) = T(n-1,k-1) + ((n-k) mod 2)*T(n-1,k) + T(n-1,k+1).
S(n,k) = (k/n)* A162246(n,k) for n>0 where S(n,k) are the coefficients from the definition provided the triangle A162246 is indexed in Laurent style by the recurrence: if abs(k) > n then A162246(n,k) = 0 else if n = k then A162246(n,k) = 1 and otherwise A162246(n,k) = A162246(n-1,k-1)+ modp(n-k,2) * A162246(n-1,k) + A162246(n-1,k+1).
Row sums: A189911(n) = A162246(n,n) + A162246(n,n+1) for n>0.
Showing 1-2 of 2 results.