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

A269134 Number of combinatory separations of normal multisets of weight n.

Original entry on oeis.org

1, 4, 14, 57, 223, 948, 3940, 16994, 72964, 317959, 1385592, 6085763, 26738139, 117939291, 520553999, 2301781692, 10181786176, 45074744448, 199558036891, 883670342156, 3912320450786
Offset: 1

Views

Author

Gus Wiseman, Feb 20 2016

Keywords

Comments

A multiset is normal if it spans an initial interval of positive integers. The type of a multiset of integers is the unique normal multiset that has the same sequence of multiplicities when its entries are taken in increasing order. For example the type of 335556 is 112223.
If and only if there exists a multiset partition p whose multiset union has type h and where g = {g_1,...,g_n} is the multiset of types of the blocks of p, there exists a *combinatory separation* which is regarded as a multi-arrow p:h<=g. For example 1122<={12,11} is *not* a combinatory separation because one cannot partition a multiset of type 1122 into two blocks where one block has two distinct elements and the other block has two equal elements. Normal multisets N and combinatory separations S comprise a multi-order (N,S). The value of a(n) is the total number of *distinct* combinatory separations h<=g where h has weight n.
The term "combinatory separation" is inspired by MacMahon's inscrutable "Combinatory Analysis" (1915) which states: "A partition of any number is "separated" into "separates" by writing down a set [sic] of partitions, each partition in its own brackets, from left to right so that when all of the parts of these partitions are assembled in a single bracket, the partition separated is reproduced."

Examples

			For a(3) the 14 distinct combinatory separations grouped according to head are: 111<={111}, 111<={1,11}, 111<={1,1,1}; 112<={112}, 112<={1,11}, 112<={1,12}, 112<={1,1,1}; 122<={122}, 122<={1,11}, 122<={1,12}, 122<={1,1,1}; 123<={123}, 123<={1,12}, 123<={1,1,1}.
Note that in this enumeration the two multiset partitions {{1},{2,3}}:123<={1,12} and {{1,2},{3}}:123<={1,12} do not represent distinct multi-arrows and consequently are counted only once, whereas the two multiset partitions {{1},{1,2}}:112<={1,12} and {{1,2},{2}}:122<={1,12} are counted separately even though they have the same multiset of block-types.
		

Crossrefs

Cf. A255906 (multiset partitions of normal multisets of weight n), A096443 (multiset partitions of multiset class representatives), A007716 (non-isomorphic multiset partitions of weight n).

Programs

  • Mathematica
    sps[{}]:={{}};sps[set:{i_,_}]:=Join@@Function[s,Prepend[#,s]&/@sps[Complement[set,s]]]/@Cases[Subsets[set],{i,_}];
    mps[set_]:=Union[Sort[Sort/@(#/.x_Integer:>set[[x]])]&/@sps[Range[Length[set]]]];
    allnorm[n_]:=If[n<=0,{{}},Function[s,Array[Count[s,y_/;y<=#]+1&,n]]/@Subsets[Range[n-1]+1]];
    normize[m_]:=m/.Rule@@@Table[{Union[m][[i]],i},{i,Length[Union[m]]}];
    Table[Length[Union@@Table[{m,Sort[normize/@#]}&/@mps[m],{m,allnorm[n]}]],{n,7}] (* Gus Wiseman, Aug 29 2018 *)

Extensions

a(9) from Gus Wiseman, Aug 29 2018
a(10) from Robert Price, Sep 14 2018
a(11)-a(21) from Martin Fuller, Mar 22 2025

A334030 Number of combinatory separations of a multiset whose multiplicities are the parts of the n-th composition in standard order.

Original entry on oeis.org

1, 1, 2, 2, 3, 4, 4, 3, 5, 7, 8, 8, 7, 9, 8, 5, 7, 12, 15, 14, 15, 17, 18, 13, 12, 17, 17, 16, 14, 16, 13, 7, 11, 19, 27, 26, 27, 37, 37, 25, 27, 37, 33, 34, 37, 40, 36, 22, 19, 32, 37, 33, 37, 38, 40, 28, 26, 33, 34, 30, 25, 28, 22, 11, 15, 30, 44, 42, 51, 68
Offset: 0

Views

Author

Gus Wiseman, Apr 16 2020

Keywords

Comments

A multiset is normal if it covers an initial interval of positive integers. The type of a multiset of integers is the unique normal multiset that has the same sequence of multiplicities when its entries are taken in increasing order. For example the type of (3,3,5,5,5,6) is (1,1,2,2,2,3).
A pair h<={g_1,...,g_k} is a combinatory separation iff there exists a multiset partition of h whose multiset of block-types is {g_1,...,g_k}. For example, the (headless) combinatory separations of the multiset (1122) are (1122), (1)(112), (1)(122), (11)(11), (12)(12), (1)(1)(11), (1)(1)(12), (1)(1)(1)(1). This list excludes (12)(11), because one cannot partition (1122) into two blocks where one block has two distinct elements and the other has two equal elements.

Examples

			The combinatory separations for n = 1, 3, 5, 9, 10, 13 (heads not shown):
  (1)  (12)    (112)      (1112)        (1122)        (1223)
       (1)(1)  (1)(11)    (1)(111)      (11)(11)      (1)(112)
               (1)(12)    (1)(112)      (1)(112)      (11)(12)
               (1)(1)(1)  (11)(12)      (1)(122)      (1)(122)
                          (1)(1)(11)    (12)(12)      (1)(123)
                          (1)(1)(12)    (1)(1)(11)    (12)(12)
                          (1)(1)(1)(1)  (1)(1)(12)    (1)(1)(11)
                                        (1)(1)(1)(1)  (1)(1)(12)
                                                      (1)(1)(1)(1)
		

Crossrefs

Multisets of compositions are A034691.
The described multiset is a row of A095684.
Combinatory separations of normal multisets are A269134.
Shuffles of compositions are counted by A292884.
Combinatory separations of prime indices are A318559.
The version for prime indices is A318560.
Combinatory separations of strongly normal multisets are A318563.
Multiset partitions of the described multiset are A333942.
All of the following pertain to compositions in standard order (A066099):
- Length is A000120.
- Sum is A070939.
- Strict compositions are A233564.
- Constant compositions are A272919.
- Length of Lyndon factorization is A329312.
- Dealings are counted by A333939.

Programs

  • Mathematica
    stc[n_]:=Differences[Prepend[Join@@Position[Reverse[IntegerDigits[n,2]],1],0]]//Reverse;
    sps[{}]:={{}};sps[set:{i_,_}]:=Join@@Function[s,Prepend[#,s]&/@sps[Complement[set,s]]]/@Cases[Subsets[set],{i,_}];
    mps[set_]:=Union[Sort[Sort/@(#/.x_Integer:>set[[x]])]&/@sps[Range[Length[set]]]];
    normize[m_]:=m/.Rule@@@Table[{Union[m][[i]],i},{i,Length[Union[m]]}];
    ptnToNorm[y_]:=Join@@Table[ConstantArray[i,y[[i]]],{i,Length[y]}];
    Table[Length[Union[Table[Sort[normize/@m],{m,mps[ptnToNorm[stc[n]]]}]]],{n,0,100}]

A318560 Number of combinatory separations of a multiset whose multiplicities are the prime indices of n in weakly decreasing order.

Original entry on oeis.org

1, 1, 2, 2, 3, 4, 5, 3, 8, 7, 7, 8, 11, 12, 15, 5, 15, 17, 22, 14, 27, 19, 30, 13, 27, 30, 33, 26, 42, 37, 56, 7, 44, 45, 51, 34, 77, 67, 72, 25
Offset: 1

Views

Author

Gus Wiseman, Aug 28 2018

Keywords

Comments

A multiset is normal if it spans an initial interval of positive integers. The type of a multiset is the unique normal multiset that has the same sequence of multiplicities when its entries are taken in increasing order. For example the type of 335556 is 112223. A (headless) combinatory separation of a multiset m is a multiset of normal multisets {t_1,...,t_k} such that there exist multisets {s_1,...,s_k} with multiset union m and such that s_i has type t_i for each i = 1...k.
The prime indices of n are the n-th row of A296150.

Examples

			The a(18) = 17 combinatory separations of {1,1,2,2,3}:
  {11223}
  {1,1122} {1,1123} {1,1223} {11,112} {12,112} {12,122} {12,123}
  {1,1,112} {1,1,122} {1,1,123} {1,11,11} {1,11,12} {1,12,12}
  {1,1,1,11} {1,1,1,12}
  {1,1,1,1,1}
		

Crossrefs

Programs

  • Mathematica
    sps[{}]:={{}};sps[set:{i_,_}]:=Join@@Function[s,Prepend[#,s]&/@sps[Complement[set,s]]]/@Cases[Subsets[set],{i,_}];
    mps[set_]:=Union[Sort[Sort/@(#/.x_Integer:>set[[x]])]&/@sps[Range[Length[set]]]];
    nrmptn[n_]:=Join@@MapIndexed[Table[#2[[1]],{#1}]&,If[n==1,{},Flatten[Cases[FactorInteger[n]//Reverse,{p_,k_}:>Table[PrimePi[p],{k}]]]]];
    normize[m_]:=m/.Rule@@@Table[{Union[m][[i]],i},{i,Length[Union[m]]}];
    Table[Length[Union[Sort/@Map[normize,mps[nrmptn[n]],{2}]]],{n,20}]

A318562 Number of combinatory separations of strongly normal multisets of weight n with strongly normal parts.

Original entry on oeis.org

1, 4, 10, 32, 80, 239, 605, 1670, 4251
Offset: 1

Views

Author

Gus Wiseman, Aug 29 2018

Keywords

Comments

A multiset is normal if it spans an initial interval of positive integers, and strongly normal if in addition it has weakly decreasing multiplicities. The type of a multiset of integers is the unique normal multiset that has the same sequence of multiplicities when its entries are taken in increasing order. For example the type of 335556 is 112223.
A pair h<={g_1,...,g_k} is a combinatory separation iff there exists a multiset partition of h whose multiset of block-types is {g_1,...,g_k}. For example, the (headless) combinatory separations of the multiset 1122 are {1122}, {1,112}, {1,122}, {11,11}, {12,12}, {1,1,11}, {1,1,12}, {1,1,1,1}. This list excludes {12,11} because one cannot partition 1122 into two blocks where one block has two distinct elements and the other block has two equal elements.

Examples

			The a(3) = 10 combinatory separations:
  111<={111}
  111<={1,11}
  111<={1,1,1}
  112<={112}
  112<={1,11}
  112<={1,12}
  112<={1,1,1}
  123<={123}
  123<={1,12}
  123<={1,1,1}
		

Crossrefs

Programs

  • Mathematica
    sps[{}]:={{}};sps[set:{i_,_}]:=Join@@Function[s,Prepend[#,s]&/@sps[Complement[set,s]]]/@Cases[Subsets[set],{i,_}];
    mps[set_]:=Union[Sort[Sort/@(#/.x_Integer:>set[[x]])]&/@sps[Range[Length[set]]]];
    strnorm[n_]:=Flatten[MapIndexed[Table[#2,{#1}]&,#]]&/@IntegerPartitions[n];
    normize[m_]:=m/.Rule@@@Table[{Union[m][[i]],i},{i,Length[Union[m]]}];
    strnormQ[m_]:=OrderedQ[Length/@Split[m],GreaterEqual];
    Table[Length[Select[Union@@Table[{m,Sort[normize/@#]}&/@mps[m],{m,strnorm[n]}],And@@strnormQ/@#[[2]]&]],{n,6}]

A355030 a(n) is the number of possible values of the number of prime divisors (counted with multiplicity) of numbers with n divisors.

Original entry on oeis.org

1, 1, 1, 2, 1, 2, 1, 3, 2, 2, 1, 4, 1, 2, 2, 5, 1, 4, 1, 4, 2, 2, 1, 7, 2, 2, 3, 4, 1, 5, 1, 7, 2, 2, 2, 8, 1, 2, 2, 6, 1, 5, 1, 4, 4, 2, 1, 11, 2, 4, 2, 4, 1, 7, 2, 7, 2, 2, 1, 11, 1, 2, 4, 11, 2, 5, 1, 4, 2, 5, 1, 14, 1, 2, 4, 4, 2, 5, 1, 11, 5, 2, 1, 11, 2
Offset: 1

Views

Author

Amiram Eldar, Jun 16 2022

Keywords

Comments

First differs from A305254 at n = 40, from A001055 and A252665 at n = 36, from A218320 at n = 32 and from A317791, A318559 and A326334 at n = 30.

Examples

			a(2) = 1 since numbers with 2 divisors are primes, i.e., numbers k with the single value Omega(k) = 1.
a(4) = 2 since numbers with 4 divisors are either of the following 2 forms: p1 * p2 with p1 and p2 being distinct primes, or of the form p^3 with p prime.
a(8) = 3 since numbers with 8 divisors are either of the following 3 forms: p1 * p2 * p3 with p1, p2 and p3 being distinct primes, p1 * p2^3, or p1^7.
		

Crossrefs

Programs

  • Mathematica
    Table[Length[Union[Total[#-1]& /@ f[n]]], {n, 1, 100}] (* using the function f by T. D. Noe at A162247 *)

Formula

a(n) <= A001055(n).
a(p) = 1 for p prime.
a(A355031(n)) = n.

A318563 Number of combinatory separations of strongly normal multisets of weight n.

Original entry on oeis.org

1, 4, 10, 33, 85, 272, 730, 2197, 6133
Offset: 1

Views

Author

Gus Wiseman, Aug 29 2018

Keywords

Comments

A multiset is normal if it spans an initial interval of positive integers, and strongly normal if in addition it has weakly decreasing multiplicities. The type of a multiset of integers is the unique normal multiset that has the same sequence of multiplicities when its entries are taken in increasing order. For example the type of 335556 is 112223.
A pair h<={g_1,...,g_k} is a combinatory separation iff there exists a multiset partition of h whose multiset of block-types is {g_1,...,g_k}. For example, the (headless) combinatory separations of the multiset 1122 are {1122}, {1,112}, {1,122}, {11,11}, {12,12}, {1,1,11}, {1,1,12}, {1,1,1,1}. This list excludes {12,11} because one cannot partition 1122 into two blocks where one block has two distinct elements and the other block has two equal elements.

Examples

			The a(3) = 10 combinatory separations:
  111<={111}
  111<={1,11}
  111<={1,1,1}
  112<={112}
  112<={1,11}
  112<={1,12}
  112<={1,1,1}
  123<={123}
  123<={1,12}
  123<={1,1,1}
		

Crossrefs

Programs

  • Mathematica
    sps[{}]:={{}};sps[set:{i_,_}]:=Join@@Function[s,Prepend[#,s]&/@sps[Complement[set,s]]]/@Cases[Subsets[set],{i,_}];
    mps[set_]:=Union[Sort[Sort/@(#/.x_Integer:>set[[x]])]&/@sps[Range[Length[set]]]];
    strnorm[n_]:=Flatten[MapIndexed[Table[#2,{#1}]&,#]]&/@IntegerPartitions[n];
    normize[m_]:=m/.Rule@@@Table[{Union[m][[i]],i},{i,Length[Union[m]]}];
    Table[Length[Union@@Table[{m,Sort[normize/@#]}&/@mps[m],{m,strnorm[n]}]],{n,7}]

A319002 Number of ordered factorizations of n where the sequence of GCDs of prime indices (A289508) of the factors is weakly increasing.

Original entry on oeis.org

1, 1, 1, 2, 1, 2, 1, 4, 2, 2, 1, 5, 1, 2, 2, 8, 1, 4, 1, 5, 2, 2, 1, 12, 2, 2, 4, 5, 1, 6, 1, 16, 2, 2, 2, 11, 1, 2, 2, 12, 1, 5, 1, 5, 4, 2, 1, 28, 2, 4, 2, 5, 1, 8, 2, 12, 2, 2, 1, 18, 1, 2, 5, 32, 2, 6, 1, 5, 2, 6, 1, 29, 1, 2, 4, 5, 2, 5, 1, 28, 8, 2, 1
Offset: 1

Views

Author

Gus Wiseman, Sep 07 2018

Keywords

Comments

Also the number of ordered multiset partitions of the multiset of prime indices of n where the sequence of GCDs of the blocks is weakly increasing. If we form a multiorder by treating integer partitions (a,...,z) as multiarrows GCD(a,...,z) <= {z,...,a}, then a(n) is the number of triangles whose composite ground is the integer partition with Heinz number n.

Examples

			The a(36) = 11 ordered factorizations:
  (2*2*3*3),
  (2*2*9), (2*6*3), (6*2*3), (4*3*3),
  (2*18), (18*2), (12*3), (4*9), (6*6),
  (36).
The a(36) = 11 ordered multiset partitions:
     {{1,1,2,2}}
    {{1},{1,2,2}}
    {{1,2,2},{1}}
    {{1,1,2},{2}}
    {{1,1},{2,2}}
    {{1,2},{1,2}}
   {{1},{1},{2,2}}
   {{1},{1,2},{2}}
   {{1,2},{1},{2}}
   {{1,1},{2},{2}}
  {{1},{1},{2},{2}}
		

Crossrefs

Programs

  • Mathematica
    facs[n_]:=If[n<=1,{{}},Join@@Table[(Prepend[#1,d]&)/@Select[facs[n/d],Min@@#1>=d&],{d,Rest[Divisors[n]]}]];
    gix[n_]:=GCD@@PrimePi/@If[n==1,{},FactorInteger[n]][[All,1]];
    Table[Length[Select[Join@@Permutations/@facs[n],OrderedQ[gix/@#]&]],{n,100}]

A319004 Number of ordered factorizations of n where the sequence of LCMs of the prime indices (A290103) of each factor is weakly increasing.

Original entry on oeis.org

1, 1, 1, 2, 1, 2, 1, 4, 2, 2, 1, 4, 1, 2, 2, 8, 1, 5, 1, 4, 2, 2, 1, 8, 2, 2, 4, 4, 1, 5, 1, 16, 2, 2, 2, 11, 1, 2, 2, 8, 1, 5, 1, 4, 4, 2, 1, 16, 2, 5, 2, 4, 1, 12, 2, 8, 2, 2, 1, 11, 1, 2, 4, 32, 2, 5, 1, 4, 2, 5, 1, 23, 1, 2, 4, 4, 2, 5, 1, 16, 8, 2, 1, 11, 2, 2, 2, 8, 1, 12, 2, 4, 2, 2, 2, 32, 1, 5, 4, 11, 1, 5, 1, 8, 5
Offset: 1

Views

Author

Gus Wiseman, Sep 07 2018

Keywords

Comments

Also the number of ordered multiset partitions of the multiset of prime indices of n where the sequence of LCMs of the parts is weakly increasing. If we form a multiorder by treating integer partitions (a,...,z) as multiarrows LCM(a,...,z) <= {z,...,a}, then a(n) is the number of triangles whose composite ground is the integer partition with Heinz number n.

Examples

			The a(60) = 11 ordered factorizations:
  (2*2*3*5),
  (2*2*15), (2*3*10), (2*6*5), (4*3*5),
  (2*30), (3*20), (4*15), (12*5), (6*10),
  (60).
The a(60) = 11 ordered multiset partitions:
     {{1,1,2,3}}
    {{1},{1,2,3}}
    {{2},{1,1,3}}
    {{1,1,2},{3}}
    {{1,1},{2,3}}
    {{1,2},{1,3}}
   {{1},{1},{2,3}}
   {{1},{2},{1,3}}
   {{1},{1,2},{3}}
   {{1,1},{2},{3}}
  {{1},{1},{2},{3}}
		

Crossrefs

Programs

  • Mathematica
    facs[n_]:=If[n<=1,{{}},Join@@Table[(Prepend[#1,d]&)/@Select[facs[n/d],Min@@#1>=d&],{d,Rest[Divisors[n]]}]];
    lix[n_]:=LCM@@PrimePi/@If[n==1,{},FactorInteger[n]][[All,1]];
    Table[Length[Select[Join@@Permutations/@facs[n],OrderedQ[lix/@#]&]],{n,100}]
  • PARI
    is_weakly_increasing(v) = { for(i=2,#v,if(v[i]A290103(n) = lcm(apply(p->primepi(p),factor(n)[,1]));
    A319004aux(n, facs) = if(1==n, is_weakly_increasing(apply(f -> A290103(f),Vec(facs))), my(s=0, newfacs); fordiv(n, d, if((d>1), newfacs = List(facs); listput(newfacs,d); s += A319004aux(n/d, newfacs))); (s));
    A319004(n) = if((1==n)||isprime(n),1,A319004aux(n, List([]))); \\ Antti Karttunen, Sep 23 2018

Formula

A001055(n) <= a(n) <= A074206(n). - Antti Karttunen, Sep 23 2018

Extensions

More terms from Antti Karttunen, Sep 23 2018

A318567 Number of pairs (c, y) where c is an integer composition and y is an integer partition and y can be obtained from c by choosing a partition of each part, flattening, and sorting.

Original entry on oeis.org

1, 3, 8, 21, 54, 137, 343, 847, 2075, 5031, 12109, 28921, 68633, 161865, 379655
Offset: 1

Views

Author

Gus Wiseman, Aug 29 2018

Keywords

Comments

Also the number of combinatory separations of normal multisets of weight n with constant parts. A multiset is normal if it spans an initial interval of positive integers. The type of a multiset is the unique normal multiset that has the same sequence of multiplicities when its entries are taken in increasing order. For example the type of 335556 is 112223. A pair h<={g_1,...,g_k} is a combinatory separation iff there exists a multiset partition of h whose multiset of block-types is {g_1,...,g_k}.

Examples

			The a(3) = 8 combinatory separations:
  111<={111}
  111<={1,11}
  111<={1,1,1}
  112<={1,11}
  112<={1,1,1}
  122<={1,11}
  122<={1,1,1}
  123<={1,1,1}
		

Crossrefs

Programs

  • Mathematica
    Table[Sum[Length[Union[Sort/@Join@@@Tuples[IntegerPartitions/@c]]],{c,Join@@Permutations/@IntegerPartitions[n]}],{n,30}]
Showing 1-9 of 9 results.