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-5 of 5 results.

A308680 Number T(n,k) of colored integer partitions of n such that all colors from a k-set are used and parts differ by size or by color; triangle T(n,k), n>=0, 0<=k<=n, read by rows.

Original entry on oeis.org

1, 0, 1, 0, 1, 1, 0, 2, 2, 1, 0, 2, 5, 3, 1, 0, 3, 8, 9, 4, 1, 0, 4, 14, 19, 14, 5, 1, 0, 5, 22, 39, 36, 20, 6, 1, 0, 6, 34, 72, 85, 60, 27, 7, 1, 0, 8, 50, 128, 180, 160, 92, 35, 8, 1, 0, 10, 73, 216, 360, 381, 273, 133, 44, 9, 1, 0, 12, 104, 354, 680, 845, 720, 434, 184, 54, 10, 1
Offset: 0

Views

Author

Alois P. Heinz, Aug 29 2019

Keywords

Comments

For fixed k > 0, T(n,k) ~ exp(Pi*sqrt(k*n/3)) * k^(1/4) / (3^(1/4) * 2^((k+3)/2) * n^(3/4)). - Vaclav Kotesovec, Sep 16 2019
T is the convolution triangle of A000009 (see A357368). - Peter Luschny, Oct 19 2022

Examples

			T(4,1) = 2: 3a1a, 4a.
T(4,2) = 5: 2a1a1b, 2b1a1b, 2a2b, 3a1b, 3b1a.
T(4,3) = 3: 2a1b1c, 2b1a1c, 2c1a1b.
T(4,4) = 1: 1a1b1c1d.
Triangle T(n,k) begins:
  1;
  0,  1;
  0,  1,  1;
  0,  2,  2,   1;
  0,  2,  5,   3,   1;
  0,  3,  8,   9,   4,   1;
  0,  4, 14,  19,  14,   5,   1;
  0,  5, 22,  39,  36,  20,   6,   1;
  0,  6, 34,  72,  85,  60,  27,   7,  1;
  0,  8, 50, 128, 180, 160,  92,  35,  8, 1;
  0, 10, 73, 216, 360, 381, 273, 133, 44, 9, 1;
  ...
		

Crossrefs

Columns k=0-10 give: A000007, A000009 (for n>0), A327380, A327381, A327382, A327383, A327384, A327385, A327386, A327387, A327388.
Main diagonal and lower diagonals give: A000012, A001477, A000096.
Row sums give A304969.
T(2n,n) gives A324595.

Programs

  • Maple
    b:= proc(n, i, k) option remember; `if`(n=0, 1, `if`(i<1, 0, add((t->
          b(t, min(t, i-1), k)*binomial(k, j))(n-i*j), j=0..min(k, n/i))))
        end:
    T:= (n, k)-> add(b(n$2, k-i)*(-1)^i*binomial(k, i), i=0..k):
    seq(seq(T(n, k), k=0..n), n=0..12);
    # second Maple program:
    b:= proc(n) option remember; `if`(n=0, 1, add(b(n-j)*add(
         `if`(d::odd, d, 0), d=numtheory[divisors](j)), j=1..n)/n)
        end:
    T:= proc(n, k) option remember;
          `if`(k=0, `if`(n=0, 1, 0), `if`(k=1, `if`(n=0, 0, b(n)),
              (q-> add(T(j, q)*T(n-j, k-q), j=0..n))(iquo(k, 2))))
        end:
    seq(seq(T(n, k), k=0..n), n=0..12);  # Alois P. Heinz, Jan 31 2021
    # Uses function PMatrix from A357368.
    PMatrix(10, A000009); # Peter Luschny, Oct 19 2022
  • Mathematica
    b[n_, i_, k_] := b[n, i, k] = If[n == 0, 1, If[i < 1, 0, Sum[Function[t,    b[t, Min[t, i - 1], k]*Binomial[k, j]][n - i*j], {j, 0, Min[k, n/i]}]]];
    T[n_, k_] := Sum[b[n, n, k - i]*(-1)^i*Binomial[k, i], {i, 0, k}];
    Table[Table[T[n, k], {k, 0, n}], {n, 0, 12}] // Flatten (* Jean-François Alcover, Dec 06 2019, from Maple *)

Formula

T(n,k) = Sum_{i=0..k} (-1)^i * binomial(k,i) * A286335(n,k-i).
Sum_{k=1..n} k * T(n,k) = A325915(n).
G.f. of column k: (-1 + Product_{j>=1} (1 + x^j))^k. - Alois P. Heinz, Jan 29 2021

A341226 Expansion of (-1 + Product_{k>=1} 1 / (1 - x^k))^7.

Original entry on oeis.org

1, 14, 105, 567, 2478, 9317, 31269, 95965, 273896, 735966, 1879059, 4591342, 10797290, 24549924, 54171729, 116368308, 243991034, 500446135, 1006039762, 1985480063, 3852429483, 7358212272, 13850448185, 25718189483, 47150564517, 85417834621, 153015826880
Offset: 7

Views

Author

Ilya Gutkovskiy, Feb 07 2021

Keywords

Crossrefs

Programs

  • Maple
    b:= proc(n, k) option remember; `if`(k<2, `if`(n=0, 1-k, combinat[
          numbpart](n)), (q-> add(b(j, q)*b(n-j, k-q), j=0..n))(iquo(k, 2)))
        end:
    a:= n-> b(n, 7):
    seq(a(n), n=7..33);  # Alois P. Heinz, Feb 07 2021
  • Mathematica
    nmax = 33; CoefficientList[Series[(-1 + Product[1/(1 - x^k), {k, 1, nmax}])^7, {x, 0, nmax}], x] // Drop[#, 7] &

A341390 Expansion of (-1 + Product_{k>=1} (1 + x^k)^k)^7.

Original entry on oeis.org

1, 14, 119, 756, 3969, 18102, 74102, 278161, 972447, 3202521, 10022705, 30013914, 86475340, 240787680, 650356936, 1709167922, 4381936874, 10984062425, 26971690900, 64986689201, 153866265007, 358443604177, 822523519244, 1861072144260, 4155817046514
Offset: 7

Views

Author

Ilya Gutkovskiy, Feb 10 2021

Keywords

Crossrefs

Programs

  • Maple
    g:= proc(n) option remember; `if`(n=0, 1, add(g(n-j)*add(d^2/
         `if`(d::odd, 1, 2), d=numtheory[divisors](j)), j=1..n)/n)
        end:
    b:= proc(n, k) option remember; `if`(k=0, 1, `if`(k=1, `if`(n=0, 0,
          g(n)), (q-> add(b(j, q)*b(n-j, k-q), j=0..n))(iquo(k, 2))))
        end:
    a:= n-> b(n, 7):
    seq(a(n), n=7..31);  # Alois P. Heinz, Feb 10 2021
  • Mathematica
    nmax = 31; CoefficientList[Series[(-1 + Product[(1 + x^k)^k, {k, 1, nmax}])^7, {x, 0, nmax}], x] // Drop[#, 7] &

A341246 Expansion of (-1 + Product_{k>=1} 1 / (1 + (-x)^k))^7.

Original entry on oeis.org

1, 0, 7, 7, 28, 49, 105, 203, 364, 672, 1141, 1960, 3220, 5250, 8359, 13104, 20272, 30877, 46522, 69195, 101941, 148604, 214697, 307475, 436849, 615965, 862246, 1199009, 1656642, 2275231, 3106824, 4219502, 5701066, 7664923, 10256771, 13663574, 18123924, 23941190
Offset: 7

Views

Author

Ilya Gutkovskiy, Feb 07 2021

Keywords

Crossrefs

Programs

  • Maple
    g:= proc(n) option remember; `if`(n=0, 1, add(add([0, d, -d, d]
          [1+irem(d, 4)], d=numtheory[divisors](j))*g(n-j), j=1..n)/n)
        end:
    b:= proc(n, k) option remember; `if`(k<2, `if`(n=0, 1-k, g(n)),
          (q-> add(b(j, q)*b(n-j, k-q), j=0..n))(iquo(k, 2)))
        end:
    a:= n-> b(n, 7):
    seq(a(n), n=7..44);  # Alois P. Heinz, Feb 07 2021
  • Mathematica
    nmax = 44; CoefficientList[Series[(-1 + Product[1/(1 + (-x)^k), {k, 1, nmax}])^7, {x, 0, nmax}], x] // Drop[#, 7] &

Formula

G.f.: (-1 + Product_{k>=1} (1 + x^(2*k - 1)))^7.

A341368 Expansion of (1 / theta_4(x) - 1)^7 / 128.

Original entry on oeis.org

1, 14, 112, 665, 3248, 13776, 52437, 183080, 595399, 1824109, 5310144, 14787542, 39605363, 102465972, 257005641, 626841236, 1490521109, 3462881324, 7875519169, 17562223791, 38456245849, 82793422502, 175452110162, 366348547908, 754392685046, 1533283745644, 3078157040665
Offset: 7

Views

Author

Ilya Gutkovskiy, Feb 10 2021

Keywords

Crossrefs

Programs

  • Maple
    g:= proc(n, i) option remember; `if`(n=0, 1/2, `if`(i=1, 0,
          g(n, i-1))+add(2*g(n-i*j, i-1), j=`if`(i=1, n, 1)..n/i))
        end:
    b:= proc(n, k) option remember; `if`(k=0, 1, `if`(k=1, `if`(n=0, 0,
          g(n$2)), (q-> add(b(j, q)*b(n-j, k-q), j=0..n))(iquo(k, 2))))
        end:
    a:= n-> b(n, 7):
    seq(a(n), n=7..33);  # Alois P. Heinz, Feb 10 2021
  • Mathematica
    nmax = 33; CoefficientList[Series[(1/EllipticTheta[4, 0, x] - 1)^7/128, {x, 0, nmax}], x] // Drop[#, 7] &
    nmax = 33; CoefficientList[Series[(1/128) (-1 + Product[(1 + x^k)/(1 - x^k), {k, 1, nmax}])^7, {x, 0, nmax}], x] // Drop[#, 7] &

Formula

G.f.: (1/128) * (-1 + Product_{k>=1} (1 + x^k) / (1 - x^k))^7.
Showing 1-5 of 5 results.