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-10 of 29 results. Next

A087980 Numbers with strictly decreasing prime exponents.

Original entry on oeis.org

1, 2, 4, 8, 12, 16, 24, 32, 48, 64, 72, 96, 128, 144, 192, 256, 288, 360, 384, 432, 512, 576, 720, 768, 864, 1024, 1152, 1440, 1536, 1728, 2048, 2160, 2304, 2592, 2880, 3072, 3456, 4096, 4320, 4608, 5184, 5760, 6144, 6912, 8192, 8640, 9216, 10368, 10800
Offset: 1

Views

Author

Rainer Rosenthal, Oct 27 2003

Keywords

Comments

This representation provides a natural ordering between strictly decreasing sequences of natural numbers. Let f and g be such sequences with f(1) > f(2) > ... > f(m) and g(1) > g(2) > ... > g(n). Define f < g iff p^f < p^g, where p^f is short for Product(i=1..m) p_i^f(i) and p^g is defined likewise as Product(i=1..n) p_i^g(i).
Note that "strictly decreasing sequences of natural numbers" is another way to say "partitions into distinct parts".
Also products of primorial numbers p_1#^k_1 * p_2#^k_2 * ... * p_n#^k_n where all k_i > 0.
A124010(a(n),k+1) < A124010(a(n),k), 1 <= k < A001221(a(n)). - Reinhard Zumkeller, Apr 13 2015
Numbers whose prime indices cover an initial interval of positive integers with strictly decreasing multiplicities. Intersection of A055932 and A304686. First differs from A181818 in having 72. - Gus Wiseman, Oct 21 2022

Examples

			The sequence starts with a(1)=1, a(2)=2, a(3)=4 and a(4)=8. The next term is a(5)=12 = 2^2*3^1 = p_1^k_1 * p_2^k_2 with k_1=2 > k_2=1.
		

Crossrefs

The weak (weakly decreasing) version is A025487.
The weak opposite (weakly increasing) version is A133808.
The opposite (strictly increasing) version is A133809.
For strictly decreasing prime signature we have A304686.

Programs

  • Haskell
    import Data.List (isPrefixOf)
    a087980 n = a087980_list !! (n-1)
    a087980_list = 1 : filter f [2..] where
       f x = isPrefixOf ps a000040_list && all (< 0) (zipWith (-) (tail es) es)
             where ps = a027748_row x; es = a124010_row x
    -- Reinhard Zumkeller, Apr 13 2015
    
  • Mathematica
    selQ[k_] := Module[{n = k, e = IntegerExponent[k, 2], t}, n /= 2^e; For[p = 3, True, p = NextPrime[p], t = IntegerExponent[n, p]; If[t == 0, Return[n == 1]]; If[t >= e, Return[False]]; e = t; n /= p^e]];
    Select[Range[12000], selQ] (* Jean-François Alcover, Mar 27 2020, after first PARI program *)
  • PARI
    is(n)=my(e=valuation(n,2),t); n>>=e; forprime(p=3,, t=valuation(n,p); if(t==0, return(n==1)); if(t>=e, return(0)); e=t; n/=p^e) \\ Charles R Greathouse IV, Jun 25 2017
    
  • PARI
    list(lim)=my(v=[],u=powers(2,logint(lim\=1,2)),w,p=2,t); forprime(q=3,, w=List(); for(i=1,#u, t=u[i]; for(e=1,valuation(u[i],p)-1, t*=q; if(t>lim, break); listput(w,t))); v=concat(v,Vec(u)); if(#w==0, break); u=w; p=q); Set(v) \\ Charles R Greathouse IV, Jun 25 2017

Formula

The numbers of the form Product(i=1..n) p_i^k_i where p_i = A000040(i) is the i-th prime and k_1 > k_2 > ... > k_n are positive natural numbers.
Compute x = 2^k_1 * 3^k_2 * 5^k_3 * 7^k_4 * 11^k_5 for k_1 > ... > k_5 allowing k_i = 0 for i > 1 and k_i = k_(i+1) in that case. Discard all x > 174636000 = 2^5*3^4*5^3*7^2*11 and enumerate those below. For more members take higher primes into account.

Extensions

Edited by Franklin T. Adams-Watters, Apr 25 2006
Offset change to 1 by T. D. Noe, May 24 2010

A318566 Number of non-isomorphic multiset partitions of multiset partitions of multisets of size n.

Original entry on oeis.org

1, 6, 21, 104, 452, 2335, 11992, 66810, 385101, 2336352, 14738380, 96831730, 659809115, 4657075074, 33974259046, 255781455848, 1984239830571, 15839628564349, 129951186405574, 1094486382191624, 9453318070371926, 83654146992936350, 757769011659766015, 7020652591448497490
Offset: 1

Views

Author

Gus Wiseman, Aug 29 2018

Keywords

Examples

			Non-isomorphic representatives of the a(3) = 21 multiset partitions of multiset partitions:
  {{{1,1,1}}}
  {{{1,1,2}}}
  {{{1,2,3}}}
  {{{1},{1,1}}}
  {{{1},{1,2}}}
  {{{1},{2,3}}}
  {{{2},{1,1}}}
  {{{1},{1},{1}}}
  {{{1},{1},{2}}}
  {{{1},{2},{3}}}
  {{{1}},{{1,1}}}
  {{{1}},{{1,2}}}
  {{{1}},{{2,3}}}
  {{{2}},{{1,1}}}
  {{{1}},{{1},{1}}}
  {{{1}},{{1},{2}}}
  {{{1}},{{2},{3}}}
  {{{2}},{{1},{1}}}
  {{{1}},{{1}},{{1}}}
  {{{1}},{{1}},{{2}}}
  {{{1}},{{2}},{{3}}}
		

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];
    dubnorm[m_]:=First[Union[Table[Map[Sort,m/.Rule@@@Table[{Union[Flatten[m]][[i]],Union[Flatten[m]][[perm[[i]]]]},{i,Length[perm]}],{0,2}],{perm,Permutations[Union[Flatten[m]]]}]]];
    Table[Length[Union[dubnorm/@Join@@mps/@Join@@mps/@strnorm[n]]],{n,5}]
  • PARI
    \\ See links in A339645 for combinatorial species functions.
    seq(n)={my(A=sExp(symGroupSeries(n))); NumUnlabeledObjsSeq(sCartProd(A, sExp(A)-1))} \\ Andrew Howroyd, Dec 30 2020

Extensions

Terms a(8) and beyond from Andrew Howroyd, Dec 30 2020

A306186 Array read by antidiagonals upwards where A(n, k) is the number of non-isomorphic multiset partitions of weight n with k levels of brackets.

Original entry on oeis.org

1, 2, 1, 3, 4, 1, 5, 10, 6, 1, 7, 33, 21, 8, 1, 11, 91, 104, 36, 10, 1, 15, 298, 452, 238, 55, 12, 1, 22, 910, 2335, 1430, 455, 78, 14, 1, 30, 3017, 11992, 10179, 3505, 775, 105, 16, 1, 42, 9945, 66810, 74299, 31881, 7297, 1218, 136, 18, 1, 56
Offset: 1

Views

Author

Gus Wiseman, Jan 27 2019

Keywords

Examples

			Array begins:
      k=1:  k=2:  k=3:  k=4:  k=5:  k=6:
  n=1:  1     1     1     1     1     1
  n=2:  2     4     6     8    10    12
  n=3:  3    10    21    36    55    78
  n=4:  5    33   104   238   455   775
  n=5:  7    91   452  1430  3505  7297
  n=6: 11   298  2335 10179 31881 80897
Non-isomorphic representatives of the A(3,3) = 21 multiset partitions:
  {{111}}          {{112}}          {{123}}
  {{1}{11}}        {{1}{12}}        {{1}{23}}
  {{1}}{{11}}      {{2}{11}}        {{1}}{{23}}
  {{1}{1}{1}}      {{1}}{{12}}      {{1}{2}{3}}
  {{1}}{{1}{1}}    {{1}{1}{2}}      {{1}}{{2}{3}}
  {{1}}{{1}}{{1}}  {{2}}{{11}}      {{1}}{{2}}{{3}}
                   {{1}}{{1}{2}}
                   {{2}}{{1}{1}}
                   {{1}}{{1}}{{2}}
		

Crossrefs

Columns: A000041 (k=1), A007716 (k=2), A318566 (k=3).
Rows: A000012 (n=1), A005843 (n=2), A014105 (n=3).

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]]]];
    undats[m_]:=Union[DeleteCases[Cases[m,_?AtomQ,{0,Infinity},Heads->True],List]];
    expnorm[m_]:=If[Length[undats[m]]==0,m,If[undats[m]!=Range[Max@@undats[m]],expnorm[m/.Apply[Rule,Table[{undats[m][[i]],i},{i,Length[undats[m]]}],{1}]],First[Sort[expnorm[m,1]]]]];
    expnorm[m_,aft_]:=If[Length[undats[m]]<=aft,{m},With[{mx=Table[Count[m,i,{0,Infinity},Heads->True],{i,Select[undats[m],#1>=aft&]}]},Union@@(expnorm[#1,aft+1]&)/@Union[Table[MapAt[Sort,m/.{par+aft-1->aft,aft->par+aft-1},Position[m,[__]]],{par,First/@Position[mx,Max[mx]]}]]]];
    strnorm[n_]:=(Flatten[MapIndexed[Table[#2,{#1}]&,#1]]&)/@IntegerPartitions[n];
    kmp[n_,k_]:=kmp[n,k]=If[k==1,strnorm[n],Union[expnorm/@Join@@mps/@kmp[n,k-1]]];
    Table[Length[kmp[sum-k,k]],{sum,1,7},{k,1,sum-1}]

Extensions

a(46)-a(56) from Robert Price, May 11 2021

A318565 Number of multiset partitions of multiset partitions of strongly normal multisets of size n.

Original entry on oeis.org

1, 6, 27, 169, 1029, 7817, 61006, 547537, 5202009, 54506262, 606311524, 7299051826, 92985064466, 1264720212352, 18137495642192, 275078184766323, 4379514178076452, 73235806332442156, 1280229713195027792, 23381809052104639236, 444740694108284116235, 8801030741502964613534
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.

Examples

			The a(2) = 6 multiset partitions of multiset partitions:
  {{{1,1}}}
  {{{1,2}}}
  {{{1},{1}}}
  {{{1},{2}}}
  {{{1}},{{1}}}
  {{{1}},{{2}}}
		

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];
    Table[Sum[Length[mps[m]],{m,Join@@mps/@strnorm[n]}],{n,6}]
  • PARI
    \\ See links in A339645 for combinatorial species functions.
    seq(n)={my(A=symGroupSeries(n)); StronglyNormalLabelingsSeq(sExp(sExp(A))-1)} \\ Andrew Howroyd, Dec 30 2020

Extensions

Terms a(9) and beyond from Andrew Howroyd, Dec 30 2020

A323787 Number of non-isomorphic multiset partitions of strict multiset partitions of weight n.

Original entry on oeis.org

1, 1, 4, 14, 56, 219, 1001, 4588
Offset: 0

Views

Author

Gus Wiseman, Jan 27 2019

Keywords

Comments

The weight of an atom is 1, and the weight of a multiset is the sum of weights of its elements, counting multiplicity.

Examples

			Non-isomorphic representatives of the a(1) = 1 through a(3) = 14 multiset partitions:
  {{1}}  {{11}}      {{111}}
         {{12}}      {{112}}
         {{1}{2}}    {{123}}
         {{1}}{{2}}  {{1}{11}}
                     {{1}{12}}
                     {{1}{23}}
                     {{2}{11}}
                     {{1}}{{11}}
                     {{1}}{{12}}
                     {{1}}{{23}}
                     {{1}{2}{3}}
                     {{2}}{{11}}
                     {{1}}{{2}{3}}
                     {{1}}{{2}}{{3}}
		

Crossrefs

A318564 Number of multiset partitions of multiset partitions of normal multisets of size n.

Original entry on oeis.org

1, 6, 36, 274, 2408, 24440, 279172, 3542798, 49354816, 747851112, 12231881948, 214593346534, 4016624367288, 79843503990710, 1678916979373760, 37215518578700028, 866953456654946948, 21167221410812128266, 540346299720320080828, 14390314687100383124540, 399023209689817997883900
Offset: 1

Views

Author

Gus Wiseman, Aug 29 2018

Keywords

Comments

A multiset is normal if it spans an initial interval of positive integers.

Examples

			The a(2) = 6 multiset partitions of multiset partitions:
  {{{1,1}}}
  {{{1,2}}}
  {{{1},{1}}}
  {{{1},{2}}}
  {{{1}},{{1}}}
  {{{1}},{{2}}}
		

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]]]];
    allnorm[n_]:=If[n<=0,{{}},Function[s,Array[Count[s,y_/;y<=#]+1&,n]]/@Subsets[Range[n-1]+1]];
    Table[Sum[Length[mps[m]],{m,Join@@mps/@allnorm[n]}],{n,6}]
  • PARI
    \\ See links in A339645 for combinatorial species functions.
    seq(n)={my(A=symGroupSeries(n)); NormalLabelingsSeq(sExp(sExp(A))-1)} \\ Andrew Howroyd, Jan 01 2021

Extensions

Terms a(8) and beyond from Andrew Howroyd, Jan 01 2021

A318285 Number of non-isomorphic multiset partitions of a multiset whose multiplicities are the prime indices of n.

Original entry on oeis.org

1, 1, 2, 2, 3, 4, 5, 3, 7, 7, 7, 9, 11, 12, 16, 5, 15, 17, 22, 16, 29, 19, 30, 16, 21, 30, 23, 29, 42, 52, 56, 7, 47, 45, 57, 43, 77, 67, 77, 31, 101, 98, 135, 47, 85, 97, 176, 29, 66, 64, 118, 77, 231, 69, 97, 57, 181, 139, 297, 137, 385, 195, 166, 11, 162, 171, 490, 118
Offset: 1

Views

Author

Gus Wiseman, Aug 23 2018

Keywords

Examples

			Non-isomorphic representatives of the a(12) = 9 multiset partitions of {1,1,2,3}:
  {{1,1,2,3}}
  {{1},{1,2,3}}
  {{2},{1,1,3}}
  {{1,1},{2,3}}
  {{1,2},{1,3}}
  {{1},{1},{2,3}}
  {{1},{2},{1,3}}
  {{2},{3},{1,1}}
  {{1},{1},{2},{3}}
		

Crossrefs

Programs

  • PARI
    \\ See links in A339645 for combinatorial species functions.
    sig(n)={my(f=factor(n), sig=vector(primepi(vecmax(f[,1])))); for(i=1, #f~, sig[primepi(f[i,1])]=f[i,2]); sig}
    C(sig)={my(n=sum(i=1, #sig, i*sig[i]), A=Vec(symGroupSeries(n)-1), B=O(x*x^n), c=prod(i=1, #sig, if(sig[i], sApplyCI(A[sig[i]], sig[i], A[i], i), 1))); polcoef(OgfSeries(sCartProd(c*x^n + B, sExp(x*Ser(A) + B))), n)}
    a(n)={if(n==1, 1, C(sig(n)))} \\ Andrew Howroyd, Jan 17 2023

Formula

a(n) = A317791(A181821(n)).

Extensions

Terms a(31) and beyond from Andrew Howroyd, Jan 17 2023

A318559 Number of combinatory separations of the multiset of prime factors of n.

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, 3, 1, 7, 2, 2, 2, 8, 1, 2, 2, 7, 1, 3, 1, 4, 4, 2, 1, 12, 2, 4, 2, 4, 1, 7, 2, 7, 2, 2, 1, 8, 1, 2, 4, 11, 2, 3, 1, 4, 2, 3, 1, 15, 1, 2, 4, 4, 2, 3, 1, 12, 5, 2, 1, 8, 2, 2
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.

Examples

			The a(60) = 8 combinatory separations of {2,2,3,5}:
  {1123},
  {1,112}, {1,123}, {11,12}, {12,12},
  {1,1,11}, {1,1,12},
  {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]]]];
    primeMS[n_]:=If[n==1,{},Flatten[Cases[FactorInteger[n],{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[primeMS[n]],{2}]]],{n,100}]

A323788 Number of non-isomorphic weight-n sets of multisets of multisets.

Original entry on oeis.org

1, 1, 5, 19, 88, 391, 1995, 10281
Offset: 0

Views

Author

Gus Wiseman, Jan 27 2019

Keywords

Comments

Also the number of non-isomorphic strict multiset partitions of multiset partitions of weight n.
All sets and multisets must be finite, and only the outermost may be empty.
The weight of an atom is 1, and the weight of a multiset is the sum of weights of its elements, counting multiplicity.

Examples

			Non-isomorphic representatives of the a(1) = 1 through a(3) = 19 multiset partitions:
  {{1}}  {{11}}      {{111}}
         {{12}}      {{112}}
         {{1}{1}}    {{123}}
         {{1}{2}}    {{1}{11}}
         {{1}}{{2}}  {{1}{12}}
                     {{1}{23}}
                     {{2}{11}}
                     {{1}}{{11}}
                     {{1}{1}{1}}
                     {{1}}{{12}}
                     {{1}{1}{2}}
                     {{1}}{{23}}
                     {{1}{2}{3}}
                     {{2}}{{11}}
                     {{1}}{{1}{1}}
                     {{1}}{{1}{2}}
                     {{1}}{{2}{3}}
                     {{2}}{{1}{1}}
                     {{1}}{{2}}{{3}}
		

Crossrefs

A323789 Number of non-isomorphic weight-n sets of sets of multisets.

Original entry on oeis.org

1, 1, 4, 15, 64, 269, 1310, 6460
Offset: 0

Views

Author

Gus Wiseman, Jan 27 2019

Keywords

Comments

Also the number of non-isomorphic strict multiset partitions, with strict parts, of multiset partitions of weight n.
All sets and multisets must be finite, and only the outermost may be empty.
The weight of an atom is 1, and the weight of a multiset is the sum of weights of its elements, counting multiplicity.

Examples

			Non-isomorphic representatives of the a(1) = 1 through a(3) = 15 multiset partition partitions:
  {{1}}  {{11}}      {{111}}
         {{12}}      {{112}}
         {{1}{2}}    {{123}}
         {{1}}{{2}}  {{1}{11}}
                     {{1}{12}}
                     {{1}{23}}
                     {{2}{11}}
                     {{1}}{{11}}
                     {{1}}{{12}}
                     {{1}}{{23}}
                     {{1}{2}{3}}
                     {{2}}{{11}}
                     {{1}}{{1}{2}}
                     {{1}}{{2}{3}}
                     {{1}}{{2}}{{3}}
		

Crossrefs

Showing 1-10 of 29 results. Next