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

A279785 Number of ways to choose a strict partition of each part of a strict partition of n.

Original entry on oeis.org

1, 1, 1, 3, 4, 7, 11, 18, 28, 47, 71, 108, 166, 252, 382, 587, 869, 1282, 1938, 2832, 4153, 6148, 8962, 12965, 18913, 27301, 39380, 56747, 81226, 115907, 166358, 236000, 334647, 475517, 671806, 947552, 1335679, 1875175, 2630584, 3687589, 5150585, 7183548
Offset: 0

Views

Author

Gus Wiseman, Dec 18 2016

Keywords

Comments

This sequence is obtained from the generalized Euler transform in A266964 by taking f(n) = -1, g(n) = -A000009(n). - Seiichi Manyama, Nov 14 2018

Examples

			The a(6)=11 twice-partitions are:
((6)), ((5)(1)), ((51)), ((4)(2)), ((42)), ((41)(1)),
((3)(2)(1)), ((31)(2)), ((32)(1)), ((321)), ((21)(2)(1)).
		

Crossrefs

Programs

  • Maple
    with(numtheory):
    g:= proc(n) option remember; `if`(n=0, 1, add(add(
          `if`(d::odd, d, 0), d=divisors(j))*g(n-j), j=1..n)/n)
        end:
    b:= proc(n, i) option remember; `if`(n>i*(i+1)/2, 0,
          `if`(n=0, 1, b(n, i-1)+`if`(i>n, 0, g(i)*b(n-i, i-1))))
        end:
    a:= n-> b(n$2):
    seq(a(n), n=0..70);  # Alois P. Heinz, Dec 20 2016
  • Mathematica
    nn=20;CoefficientList[Series[Product[(1+PartitionsQ[k]x^k),{k,nn}],{x,0,nn}],x]
    (* Second program: *)
    g[n_] := g[n] = If[n==0, 1, Sum[Sum[If[OddQ[d], d, 0], {d, Divisors[j]}]* g[n - j], {j, 1, n}]/n]; b[n_, i_] := b[n, i] = If[n > i*(i + 1)/2, 0, If[n==0, 1, b[n, i-1] + If[i>n, 0, g[i]*b[n-i, i-1]]]]; a[n_] := b[n, n]; Table[a[n], {n, 0, 70}] (* Jean-François Alcover, Feb 07 2017, after Alois P. Heinz *)

Formula

G.f.: Product_{k>0} (1 + A000009(k)*x^k). - Seiichi Manyama, Nov 14 2018

A327605 Number of parts in all twice partitions of n where both partitions are strict.

Original entry on oeis.org

0, 1, 1, 5, 8, 15, 28, 49, 86, 156, 259, 412, 679, 1086, 1753, 2826, 4400, 6751, 10703, 16250, 24757, 38047, 57459, 85861, 129329, 192660, 286177, 424358, 624510, 915105, 1347787, 1961152, 2847145, 4144089, 5988205, 8638077, 12439833, 17837767, 25536016
Offset: 0

Views

Author

Alois P. Heinz, Sep 18 2019

Keywords

Examples

			a(3) = 5 = 1+2+2 counting the parts in 3, 21, 2|1.
		

Crossrefs

Programs

  • Maple
    g:= proc(n, i) option remember; `if`(i*(i+1)/2 f+
           [0, f[1]])(g(n-i, min(n-i, i-1)))))
        end:
    b:= proc(n, i) option remember; `if`(i*(i+1)/2 (f-> f+[0, f[1]*
           h[2]/h[1]])(b(n-i, min(n-i, i-1))*h[1]))(g(i$2))))
        end:
    a:= n-> b(n$2)[2]:
    seq(a(n), n=0..42);
  • Mathematica
    b[n_, i_, k_] := b[n, i, k] = With[{}, If[n == 0, Return@{1, 0}]; If[k == 0, Return@{1, 1}]; If[i (i + 1)/2 < n, Return@{0, 0}]; b[n, i - 1, k] + Function[h, Function[f, f + {0, f[[1]] h[[2]]/h[[1]]}][h[[1]] b[n - i, Min[n - i, i - 1], k]]][b[i, i, k - 1]]];
    a[n_] := b[n, n, 2][[2]];
    a /@ Range[0, 42] (* Jean-François Alcover, Jun 03 2020, after Alois P. Heinz in A327622 *)

A327590 Number of partitions in all twice partitions of n.

Original entry on oeis.org

0, 1, 4, 10, 29, 63, 164, 339, 797, 1640, 3578, 7139, 15210, 29621, 60381, 117116, 232523, 442388, 863069, 1621560, 3105993, 5785525, 10894394, 20083143, 37434186, 68344449, 125774280, 228088127, 415668548, 747660318, 1351364816, 2413792653, 4327245170
Offset: 0

Views

Author

Alois P. Heinz, Sep 17 2019

Keywords

Examples

			a(3) = 10 = 1+1+1+2+2+3 counting the partitions in 3, 21, 111, 2|1, 11|1, 1|1|1.
		

Crossrefs

Programs

  • Maple
    b:= proc(n, i) option remember; `if`(n=0, [1, 0], `if`(i<1, 0, b(n, i-1)+
          (p-> p+[0, p[1]])(combinat[numbpart](i)*b(n-i, min(n-i, i)))))
        end:
    a:= n-> b(n$2)[2]:
    seq(a(n), n=0..42);
  • Mathematica
    b[n_, i_] := b[n, i] = If[n == 0, {1, 0}, If[i<1, {0, 0}, b[n, i-1] + Function[p, p + {0, p[[1]]}][PartitionsP[i] b[n-i, Min[n-i, i]]]]];
    a[n_] := b[n, n][[2]];
    a /@ Range[0, 42] (* Jean-François Alcover, Dec 16 2020, after Alois P. Heinz *)
Showing 1-3 of 3 results.