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.

A300437 Triangle T(nu,m) read by rows: The number of N-color odd self-inverse compositions of (2*nu+1) into (2*m+1) parts.

Original entry on oeis.org

1, 3, 1, 5, 3, 1, 7, 8, 3, 1, 9, 16, 11, 3, 1, 11, 29, 25, 14, 3, 1, 13, 47, 58, 34, 17, 3, 1, 15, 72, 110, 96, 43, 20, 3, 1, 17, 104, 206, 200, 143, 52, 23, 3, 1, 19, 145, 346, 442, 317, 199, 61, 26, 3, 1, 21, 195, 571, 822, 807, 461, 264, 70, 29, 3, 1, 23, 256, 881, 1565, 1613, 1328, 632, 338, 79, 32, 3, 1
Offset: 0

Views

Author

R. J. Mathar, Mar 05 2018

Keywords

Comments

Table 1 of Guo contains several typos which are not compliant with the formula on page 4 for S_o(2k+1,2l+1). Also the formula has been modified to read S_o(2k+1,2l+1) = sum_{t=1..2k+1) sum_{i+j= (2k+1-t-2l)/4} t*binomial(2l+i-1,2l-1)*binomial(l,j). So the upper limit on t has been extended and a factor t has been inserted.

Examples

			The triangle starts in row nu=0 with columns 0<=m<=nu as:
1;
3,1;
5,3,1;
7,8,3,1;
9,16,11,3,1;
11,29,25,14,3,1;
13,47,58,34,17,3,1;
15,72,110,96,43,20,3,1;
17,104,206,200,143,52,23,3,1;
19,145,346,442,317,199,61,26,3,1;
21,195,571,822,807,461,264,70,29,3,1;
23,256,881,1565,1613,1328,632,338,79,32,3,1;
25,328,1337,2671,3478,2800,2032,830,421,88,35,3,1;
27,413,1939,4596,6402,6742,4464,2946,1055,513,97,38,3,1;
		

Crossrefs

Cf. A131941 (column 2?), A300438 (row sums), A292835.

Programs

  • Maple
    A300437 := proc(k,l)
        local a,t,i,j ;
        a := 0 ;
        for t from 1 to 2*k+1 by 2 do
            for j from 0 to l do
                i := (2*k+1-t-2*l)/4-j ;
                if type(i,'integer') then
                    a := a+t*binomial(2*l+i-1,2*l-1)*binomial(l,j) ;
                end if;
            end do:
        end do:
        a ;
    end proc:
    seq(seq(A300437(k,l),l=0..k),k=0..13) ;
  • Mathematica
    A300437[k_, l_] := Module[{a, t, i, j }, a = 0; For[t = 1, t <= 2k + 1, t += 2, For[j = 0, j <= l, j++, i = (2k + 1 - t - 2*l)/4 - j; If[ IntegerQ[i], a = a + t*Binomial[2l + i - 1, 2l - 1]*Binomial[l, j]]]]; a];
    Table[Table[A300437[k, l], {l, 0, k}], {k, 0, 13}] // Flatten (* Jean-François Alcover, Aug 15 2023, after Maple code *)

Formula

64*T(nu+2,2) = 51 +1306/15*nu +13*(-1)^nu +56/3*nu^3 +170/3*nu^2 +4/15*nu^5 +10*(-1)^nu*nu +2*(-1)^nu*nu^2 +10/3*nu^4 with g.f. (1+x^2)^2/[(1+x)^3*(1-x)^6], column 2.

A119749 Number of compositions of n into odd blocks with one element in each block distinguished.

Original entry on oeis.org

1, 1, 4, 7, 15, 32, 65, 137, 284, 591, 1231, 2560, 5329, 11089, 23076, 48023, 99935, 207968, 432785, 900633, 1874236, 3900319, 8116639, 16890880, 35150241, 73148321, 152223044, 316779047, 659223215, 1371856032, 2854858465
Offset: 1

Views

Author

Louis Shapiro, Jul 30 2006

Keywords

Comments

The sequence is the INVERT transform of the aerated odd integers. - Gary W. Adamson, Feb 02 2014
Number of compositions of n into odd parts where there is 1 sort of part 1, 3 sorts of part 3, 5 sorts of part 5, ... , 2*k-1 sorts of part 2*k-1. - Joerg Arndt, Aug 04 2014

Examples

			a(3) = 4 since Abc, aBc, abC come from one block of size 3 and A/B/C comes from having three blocks. The capital letters are the distinguished elements.
		

Crossrefs

Cf. A105309, A052530, A000045, A030267. Row sums of A292835.

Programs

  • Mathematica
    Rest@ CoefficientList[ Series[x(1 + x^2)/(x^4 - x^3 - 2x^2 - x + 1), {x, 0, 50}], x] (* Robert G. Wilson v *)

Formula

G.f.: (x+x^3)/(x^4 - x^3 -2x^2 -x +1).
a(n) = A092886(n)+A092886(n-2). - R. J. Mathar, Mar 08 2018
Sum_{k=0..n} a(k) = (3*a(n) + 2*a(n-1) - a(n-3))/2 - 1. - Xilin Wang and Greg Dresden, Aug 27 2020
Showing 1-2 of 2 results.