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 12 results. Next

A353841 Length of the trajectory of the partition run-sum transformation of n, using Heinz numbers; a(1) = 0.

Original entry on oeis.org

0, 1, 1, 2, 1, 1, 1, 2, 2, 1, 1, 3, 1, 1, 1, 2, 1, 2, 1, 2, 1, 1, 1, 2, 2, 1, 2, 2, 1, 1, 1, 2, 1, 1, 1, 2, 1, 1, 1, 3, 1, 1, 1, 2, 2, 1, 1, 2, 2, 2, 1, 2, 1, 2, 1, 2, 1, 1, 1, 3, 1, 1, 3, 2, 1, 1, 1, 2, 1, 1, 1, 2, 1, 1, 2, 2, 1, 1, 1, 2, 2, 1, 1, 4, 1, 1, 1, 2, 1, 2, 1, 2, 1, 1, 1, 2, 1, 2, 2, 2, 1, 1, 1, 2, 1, 1, 1, 2, 1, 1, 1, 3
Offset: 1

Views

Author

Gus Wiseman, May 25 2022

Keywords

Comments

The Heinz number of a partition (y_1,...,y_k) is prime(y_1)*...*prime(y_k). This gives a bijective correspondence between positive integers and integer partitions.
Starting with n, this is one plus the number of times one must apply A353832 to reach a squarefree number.
Also Kimberling's depth statistic (defined in A237685 and A237750) plus one.

Examples

			The trajectory for a(1080) = 4 is the following, with prime indices shown on the right:
  1080: {1,1,1,2,2,2,3}
   325: {3,3,6}
   169: {6,6}
    37: {12}
The trajectory for a(87780) = 5 is the following, with prime indices shown on the right:
  87780: {1,1,2,3,4,5,8}
  65835: {2,2,3,4,5,8}
  51205: {3,4,4,5,8}
  19855: {3,5,8,8}
   2915: {3,5,16}
The trajectory for a(39960) = 5 is the following, with prime indices shown on the right:
  39960: {1,1,1,2,2,2,3,12}
  12025: {3,3,6,12}
   6253: {6,6,12}
   1369: {12,12}
     89: {24}
		

Crossrefs

Positions of 1's are A005117.
The version for run-lengths instead of sums is A182850 or A323014.
Positions of first appearances are A353743.
These are the row-lengths of A353840.
Other sequences pertaining to this trajectory are A353842-A353845.
Counting partitions by this statistic gives A353846.
The version for compositions is A353854, run-lengths of A353853.
A001222 counts prime factors, distinct A001221.
A005811 counts runs in binary expansion.
A056239 adds up prime indices, row sums of A112798 and A296150.
A300273 ranks collapsible partitions, counted by A275870.
A318928 gives runs-resistance of binary expansion.
A353832 represents the operation of taking run-sums of a partition.
A353833 ranks partitions with all equal run-sums, counted by A304442.
A353835 counts distinct run-sums of prime indices, weak A353861.
A353838 ranks partitions with all distinct run-sums, counted by A353837.
A353866 ranks rucksack partitions, counted by A353864.

Programs

  • Mathematica
    Table[If[n==1,0,Length[NestWhileList[Times@@Prime/@Cases[If[#==1,{},FactorInteger[#]],{p_,k_}:>PrimePi[p]*k]&,n,!SquareFreeQ[#]&]]],{n,100}]
  • PARI
    pis_to_runs(n) = { my(runs=List([]), f=factor(n)); for(i=1,#f~,while(f[i,2], listput(runs,primepi(f[i,1])); f[i,2]--)); (runs); };
    A353832(n) = if(1==n,n,my(pruns = pis_to_runs(n), m=1, runsum=pruns[1]); for(i=2,#pruns,if(pruns[i] == pruns[i-1], runsum += pruns[i], m *= prime(runsum); runsum = pruns[i])); (m*prime(runsum)));
    A353841(n) = if(1==n,0,for(i=1,oo,if(issquarefree(n), return(i), n = A353832(n)))); \\ Antti Karttunen, Jan 20 2025

Formula

a(1) = 0, and for n > 1, if A008966(n) = 1 [n is in A005117], a(n) = 1, otherwise a(n) = 1+a(A353832(n)). [See comments] - Antti Karttunen, Jan 20 2025

Extensions

More terms from Antti Karttunen, Jan 20 2025

A325282 Maximum adjusted frequency depth among integer partitions of n.

Original entry on oeis.org

0, 1, 2, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7
Offset: 0

Views

Author

Gus Wiseman, Apr 18 2019

Keywords

Comments

The adjusted frequency depth of an integer partition is 0 if the partition is empty, and otherwise it is one plus the number of times one must take the multiset of multiplicities to reach a singleton. For example, the partition (32211) has adjusted frequency depth 5 because we have: (32211) -> (221) -> (21) -> (11) -> (2).
The term "frequency depth" appears to have been coined by Clark Kimberling in A225485 and A225486, and can be applied to both integers (A323014) and integer partitions (A325280).
Run lengths are A325258, i.e., first differences of Levine's sequence A011784 (except at n = 1).

Crossrefs

Integer partition triangles: A008284 (first omega), A116608 (second omega), A325242 (third omega), A325268 (second-to-last omega), A225485 or A325280 (length/frequency depth).

Programs

  • Mathematica
    fdadj[ptn_List]:=If[ptn=={},0,Length[NestWhileList[Sort[Length/@Split[#]]&,ptn,Length[#]>1&]]];
    Table[Max@@fdadj/@IntegerPartitions[n],{n,0,30}]

Formula

a(0) = 0; a(1) = 1; a(n > 1) = A225486(n).

A325258 a(1) = 1; otherwise, first differences of Levine's sequence A011784.

Original entry on oeis.org

1, 1, 1, 1, 3, 7, 28, 171, 2624, 172613, 139584150, 6837485347187, 266437138079023501057, 508009471379222384299345337895696, 37745517525533091954228691786161750063795478326636142, 5347426383812697233786139576220412396732847744407175515852823296919414647252347610750
Offset: 0

Views

Author

Gus Wiseman, Apr 16 2019

Keywords

Comments

a(n) is the number of nonnegative integers k such that the maximum adjusted frequency depth among integer partitions of k is n. For example, the a(5) = 7 numbers are 7, 8, 9, 10, 11, 12, and 13.
The adjusted frequency depth of an integer partition is 0 if the partition is empty, and otherwise it is 1 plus the number of times one must take the multiset of multiplicities to reach a singleton. For example, the partition (32211) has adjusted frequency depth 5 because we have: (32211) -> (221) -> (21) -> (11) -> (2). The enumeration of integer partitions by adjusted frequency depth is given by A325280. The adjusted frequency depth of the integer partition with Heinz number n is A323014(n). The maximum adjusted frequency depth for partitions of n is A325282(n).

Crossrefs

Programs

  • Mathematica
    grw[q_]:=Join@@Table[ConstantArray[i,q[[Length[q]-i+1]]],{i,Length[q]}];
    ReplacePart[Differences[Last/@NestList[grw,{1,1},9]],2->1]

A325254 Number of integer partitions of n with the maximum adjusted frequency depth for partitions of n.

Original entry on oeis.org

0, 1, 1, 1, 1, 3, 3, 1, 3, 7, 10, 17, 27, 38, 1, 4, 8, 17, 31, 52, 83, 122, 181, 257, 361, 499, 684, 910, 1211, 1595, 2060, 2663, 3406, 4315, 5426, 6784, 8417, 10466, 12824, 15721, 19104, 23267, 1, 5, 14, 36, 76, 143, 269, 446, 738, 1143, 1754, 2570, 3742, 5269
Offset: 0

Views

Author

Gus Wiseman, Apr 16 2019

Keywords

Comments

The Heinz numbers of these partitions are given by A325283.
The adjusted frequency depth of an integer partition is 0 if the partition is empty, and otherwise it is 1 plus the number of times one must take the multiset of multiplicities to reach a singleton. For example, the partition (32211) has adjusted frequency depth 5 because we have: (32211) -> (221) -> (21) -> (11) -> (2). The enumeration of integer partitions by adjusted frequency depth is given by A325280. The adjusted frequency depth of the integer partition with Heinz number n is given by A323014. The maximum adjusted frequency depth for integer partitions of n is given by A325282.
Essentially, the last numbers of rows of the array in A225485. - Clark Kimberling, Sep 13 2022

Examples

			The a(1) = 1 through a(11) = 17 partitions:
  1  11  21  211  221   411    3211  3221   3321    5221     4322
                  311   3111         4211   4221    5311     4331
                  2111  21111        32111  4311    6211     4421
                                            5211    32221    5411
                                            32211   33211    6221
                                            42111   42211    6311
                                            321111  43111    7211
                                                    52111    33221
                                                    421111   42221
                                                    3211111  43211
                                                             52211
                                                             53111
                                                             62111
                                                             431111
                                                             521111
                                                             4211111
                                                             32111111
		

Crossrefs

Integer partition triangles: A008284 (first omega), A116608 (second omega), A325242 (third omega), A325268 (second-to-last omega), A225485 or A325280 (length/frequency depth).

Programs

  • Mathematica
    nn=30;
    fdadj[ptn_List]:=If[ptn=={},0,Length[NestWhileList[Sort[Length/@Split[#]]&,ptn,Length[#]>1&]]];
    mfds=Table[Max@@fdadj/@IntegerPartitions[n],{n,nn}];
    Table[Length[Select[IntegerPartitions[n],fdadj[#]==mfds[[n]]&]],{n,0,nn}]

A353743 Least number with run-sum trajectory of length k; a(0) = 1.

Original entry on oeis.org

1, 2, 4, 12, 84, 1596, 84588, 11081028, 3446199708, 2477817590052, 4011586678294188, 14726534696017964148, 120183249654202605411828, 2146833388573021140471483564, 83453854313999050793547980583372, 7011542477899258250521520684673165324
Offset: 0

Views

Author

Gus Wiseman, Jun 11 2022

Keywords

Comments

Every sequence can be uniquely split into a sequence of non-overlapping runs. For example, the runs of (2,2,1,1,1,3,2,2) are ((2,2),(1,1,1),(3),(2,2)), with sums (4,3,3,4). The run-sum trajectory is obtained by repeatedly taking the run-sum transformation (A353832, A353847) until a squarefree number is reached. For example, the trajectory 12 -> 9 -> 7 corresponds to the partitions (2,1,1) -> (2,2) -> (4).

Examples

			The terms together with their prime indices begin:
      1: {}
      2: {1}
      4: {1,1}
     12: {1,1,2}
     84: {1,1,2,4}
   1596: {1,1,2,4,8}
  84588: {1,1,2,4,8,16}
		

Crossrefs

The ordered version is A072639, for run-lengths A333629.
The version for run-lengths is A325278, firsts in A182850 or A323014.
The run-sum trajectory is the iteration of A353832.
The first length-k row of A353840 has index a(k).
Other sequences pertaining to this trajectory are A353841-A353846.
A001222 counts prime factors, distinct A001221.
A056239 adds up prime indices, row sums of A112798 and A296150.
A300273 ranks collapsible partitions, counted by A275870.
A353833 ranks partitions with all equal run-sums, counted by A304442.
A353835 counts distinct run-sums of prime indices, weak A353861.
A353838 ranks partitions with all distinct run-sums, counted by A353837.
A353866 ranks rucksack partitions, counted by A353864.

Programs

  • Mathematica
    Join[{1,2},Table[2*Product[Prime[2^k],{k,0,n}],{n,0,6}]]

Formula

a(n > 1) = 2 * Product_{k=0..n-2} prime(2^k).
a(n > 0) = 2 * A325782(n).

A325283 Heinz numbers of integer partitions with maximum adjusted frequency depth for partitions of that sum.

Original entry on oeis.org

2, 4, 6, 12, 18, 20, 24, 28, 40, 48, 60, 84, 90, 120, 126, 132, 140, 150, 156, 168, 180, 198, 204, 220, 228, 234, 240, 252, 260, 264, 270, 276, 280
Offset: 1

Views

Author

Gus Wiseman, Apr 17 2019

Keywords

Comments

The enumeration of these partitions by sum is given by A325254.
The adjusted frequency depth of an integer partition is 0 if the partition is empty, and otherwise it is 1 plus the number of times one must take the multiset of multiplicities to reach a singleton. For example, the partition (32211) has adjusted frequency depth 5 because we have: (32211) -> (221) -> (21) -> (11) -> (2).
The Heinz number of an integer partition (y_1,...,y_k) is prime(y_1)*...*prime(y_k).

Examples

			The sequence of terms together with their prime indices and their omega-sequences (see A323023) begins:
  2:   {1}         (1)
  4:   {1,1}       (2,1)
  6:   {1,2}       (2,2,1)
  12:  {1,1,2}     (3,2,2,1)
  18:  {1,2,2}     (3,2,2,1)
  20:  {1,1,3}     (3,2,2,1)
  24:  {1,1,1,2}   (4,2,2,1)
  28:  {1,1,4}     (3,2,2,1)
  40:  {1,1,1,3}   (4,2,2,1)
  48:  {1,1,1,1,2} (5,2,2,1)
  60:  {1,1,2,3}   (4,3,2,2,1)
  84:  {1,1,2,4}   (4,3,2,2,1)
  90:  {1,2,2,3}   (4,3,2,2,1)
  120: {1,1,1,2,3} (5,3,2,2,1)
  126: {1,2,2,4}   (4,3,2,2,1)
  132: {1,1,2,5}   (4,3,2,2,1)
  140: {1,1,3,4}   (4,3,2,2,1)
  150: {1,2,3,3}   (4,3,2,2,1)
  156: {1,1,2,6}   (4,3,2,2,1)
  168: {1,1,1,2,4} (5,3,2,2,1)
  180: {1,1,2,2,3} (5,3,2,2,1)
		

Crossrefs

Integer partition triangles: A008284 (first omega), A116608 (second omega), A325242 (third omega), A325268 (second-to-last omega), A225485 or A325280 (length/frequency depth).

Programs

  • Mathematica
    nn=30;
    primeMS[n_]:=If[n==1,{},Flatten[Cases[FactorInteger[n],{p_,k_}:>Table[PrimePi[p],{k}]]]];
    fdadj[ptn_List]:=If[ptn=={},0,Length[NestWhileList[Sort[Length/@Split[#]]&,ptn,Length[#]>1&]]];
    mfds=Table[Max@@fdadj/@IntegerPartitions[n],{n,nn}];
    Select[Range[Prime[nn]],fdadj[primeMS[#]]==mfds[[Total[primeMS[#]]]]&]

A325253 Number of integer partitions of n with adjusted frequency depth ceiling(sqrt(n)).

Original entry on oeis.org

1, 1, 1, 1, 2, 2, 4, 4, 6, 8, 17, 26, 25, 44, 53, 63, 83, 128, 168, 212, 273, 344, 429, 525, 662, 796, 684, 910, 1211, 1595, 2060, 2663, 3406, 4315, 5426, 6784, 8417, 0, 0, 0, 0, 0, 1, 5, 14, 36, 76, 143, 269, 446, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
Offset: 0

Views

Author

Gus Wiseman, Apr 22 2019

Keywords

Comments

The adjusted frequency depth of an integer partition is 0 if the partition is empty, and otherwise it is one plus the number of times one must take the multiset of multiplicities to reach a singleton. For example, the partition (32211) has adjusted frequency depth 5 because we have: (32211) -> (221) -> (21) -> (11) -> (2).

Examples

			The a(2) = 1 through a(11) = 26 partitions:
    11  111  22    32  42    43   53    54      433        443
             1111  41  51    52   62    63      442        533
                       321   61   71    72      622        551
                       2211  421  431   81      811        722
                                  521   432     3331       911
                                  3311  531     4222       3332
                                        621     7111       5222
                                        222111  61111      8111
                                                222211     32222
                                                322111     33311
                                                331111     44111
                                                511111     71111
                                                2221111    222221
                                                4111111    322211
                                                22111111   332111
                                                31111111   422111
                                                211111111  611111
                                                           2222111
                                                           3221111
                                                           3311111
                                                           5111111
                                                           22211111
                                                           41111111
                                                           221111111
                                                           311111111
                                                           2111111111
		

Crossrefs

Programs

  • Mathematica
    fdadj[ptn_List]:=If[ptn=={},0,Length[NestWhileList[Sort[Length/@Split[#1]]&,ptn,Length[#1]>1&]]];
    Table[Length[Select[IntegerPartitions[n],fdadj[#]==Ceiling[Sqrt[n]]&]],{n,0,30}]

A325266 Numbers whose adjusted frequency depth equals their number of prime factors counted with multiplicity.

Original entry on oeis.org

1, 2, 3, 4, 5, 7, 9, 11, 13, 17, 19, 23, 24, 25, 29, 30, 31, 37, 40, 41, 42, 43, 47, 49, 53, 54, 56, 59, 61, 66, 67, 70, 71, 73, 78, 79, 83, 88, 89, 97, 101, 102, 103, 104, 105, 107, 109, 110, 113, 114, 120, 121, 127, 130, 131, 135, 136, 137, 138, 139, 149
Offset: 1

Views

Author

Gus Wiseman, Apr 17 2019

Keywords

Comments

The adjusted frequency depth of a positive integer n is 0 if n = 1, and otherwise it is 1 plus the number of times one must apply A181819 to reach a prime number, where A181819(n = p^i*...*q^j) = prime(i)*...*prime(j) = product of primes indexed by the prime exponents of n. For example, 180 has adjusted frequency depth 5 because we have: 180 -> 18 -> 6 -> 4 -> 3.
The Heinz number of an integer partition (y_1,...,y_k) is prime(y_1)*...*prime(y_k), so these are Heinz numbers of integer partitions whose adjusted frequency depth is equal to their length. The enumeration of these partitions by sum is given by A325246.

Examples

			The sequence of terms together with their prime indices and their omega-sequences (see A323023) begins:
   2:       {1} (1)
   3:       {2} (1)
   4:     {1,1} (2,1)
   5:       {3} (1)
   7:       {4} (1)
   9:     {2,2} (2,1)
  11:       {5} (1)
  13:       {6} (1)
  17:       {7} (1)
  19:       {8} (1)
  23:       {9} (1)
  24: {1,1,1,2} (4,2,2,1)
  25:     {3,3} (2,1)
  29:      {10} (1)
  30:   {1,2,3} (3,3,1)
  31:      {11} (1)
  37:      {12} (1)
  40: {1,1,1,3} (4,2,2,1)
  41:      {13} (1)
  42:   {1,2,4} (3,3,1)
		

Crossrefs

Omega-sequence statistics: A001222 (first omega), A001221 (second omega), A071625 (third omega), A323022 (fourth omega), A304465 (second-to-last omega), A182850 or A323014 (length/frequency depth), A325248 (Heinz number).

Programs

  • Mathematica
    fdadj[n_Integer]:=If[n==1,0,Length[NestWhileList[Times@@Prime/@Last/@FactorInteger[#]&,n,!PrimeQ[#]&]]];
    Select[Range[100],fdadj[#]==PrimeOmega[#]&]

A325271 Number of integer partitions of n with frequency depth round(sqrt(n)).

Original entry on oeis.org

1, 1, 1, 1, 2, 1, 3, 4, 6, 8, 11, 11, 19, 44, 53, 63, 83, 113, 124, 171, 190, 344, 429, 525, 662, 796, 981, 1182, 1442, 1709, 2096, 2663, 3406, 4315, 5426, 6784, 8417, 10466, 12824, 15721, 19104, 23267, 27981, 5, 14, 36, 76, 143, 269, 446, 738, 1143, 1754
Offset: 0

Views

Author

Gus Wiseman, Apr 23 2019

Keywords

Comments

The adjusted frequency depth of an integer partition is 0 if the partition is empty, and otherwise it is 1 plus the number of times one must take the multiset of multiplicities to reach a singleton. For example, the partition (32211) has adjusted frequency depth 5 because we have: (32211) -> (221) -> (21) -> (11) -> (2).

Examples

			The a(2) = 1 through a(10) = 11 partitions:
  (2)  (111)  (22)    (11111)  (33)      (43)   (53)    (54)      (64)
              (1111)           (222)     (52)   (62)    (63)      (73)
                               (111111)  (61)   (71)    (72)      (82)
                                         (421)  (431)   (81)      (91)
                                                (521)   (432)     (532)
                                                (3311)  (531)     (541)
                                                        (621)     (631)
                                                        (222111)  (721)
                                                                  (3322)
                                                                  (4321)
                                                                  (4411)
		

Crossrefs

Programs

  • Mathematica
    fdadj[ptn_List]:=If[ptn=={},0,Length[NestWhileList[Sort[Length/@Split[#]]&,ptn,Length[#]>1&]]];
    Table[Length[Select[IntegerPartitions[n],fdadj[#]==Round[Sqrt[n]]&]],{n,0,30}]

A325252 Number of integer partitions of n with frequency depth floor(sqrt(n)).

Original entry on oeis.org

1, 1, 1, 1, 2, 1, 3, 1, 3, 8, 11, 11, 19, 17, 25, 29, 83, 113, 124, 171, 190, 242, 289, 368, 399, 796, 981, 1182, 1442, 1709, 2096, 2469, 2990, 3545, 4276, 5037, 8417, 10466, 12824, 15721, 19104, 23267, 27981, 33856, 40515, 48508, 57826, 68982, 81493, 446, 738
Offset: 0

Views

Author

Gus Wiseman, Apr 22 2019

Keywords

Comments

The adjusted frequency depth of an integer partition is 0 if the partition is empty, and otherwise it is 1 plus the number of times one must take the multiset of multiplicities to reach a singleton. For example, the partition (32211) has adjusted frequency depth 5 because we have: (32211) -> (221) -> (21) -> (11) -> (2).

Examples

			The a(2) = 1 through a(12) = 19 partitions (A = 10, B = 11):
  2  3  22    11111  33      1111111  44        54      64    65    75
        1111         222              2222      63      73    74    84
                     111111           11111111  72      82    83    93
                                                81      91    92    A2
                                                432     532   A1    B1
                                                531     541   542   543
                                                621     631   632   642
                                                222111  721   641   651
                                                        3322  731   732
                                                        4321  821   741
                                                        4411  5321  831
                                                                    921
                                                                    4422
                                                                    5421
                                                                    5511
                                                                    6321
                                                                    332211
                                                                    333111
                                                                    22221111
		

Crossrefs

Programs

  • Mathematica
    fdadj[ptn_List]:=If[ptn=={},0,Length[NestWhileList[Sort[Length/@Split[#1]]&,ptn,Length[#1]>1&]]];
    Table[Length[Select[IntegerPartitions[n],fdadj[#]==Floor[Sqrt[n]]&]],{n,0,30}]
Showing 1-10 of 12 results. Next