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.

A386578 Irregular triangle read by rows where T(n,k) is the number of permutations of row n of A305936 (a multiset whose multiplicities are the prime indices of n) with k adjacent equal parts.

Original entry on oeis.org

1, 0, 1, 2, 0, 0, 0, 1, 1, 2, 0, 0, 0, 0, 1, 6, 0, 0, 2, 2, 2, 0, 0, 2, 2, 0, 0, 0, 0, 0, 1, 6, 6, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 3, 2, 0, 1, 4, 3, 2, 0, 24, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 12, 12, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 12, 6, 0, 0, 0, 3, 6, 4, 2, 0
Offset: 2

Views

Author

Gus Wiseman, Aug 04 2025

Keywords

Comments

Row 1 is empty, so offset is 2.
Same as A386579 with rows reversed.
This multiset (row n of A305936) is generally not the same as the multiset of prime indices of n. For example, the prime indices of 12 are {1,1,2}, while a multiset whose multiplicities are {1,1,2} is {1,1,2,3}.

Examples

			Row n = 21 counts the following permutations:
  .  112121  111212  111221  111122  .
     121121  112112  112211  221111
     121211  121112  122111
             211121  211112
             211211
             212111
Triangle begins
   .
   1
   0  1
   2  0
   0  0  1
   1  2  0
   0  0  0  1
   6  0  0
   2  2  2  0
   0  2  2  0
   0  0  0  0  1
   6  6  0  0
   0  0  0  0  0  1
   0  0  3  2  0
   1  4  3  2  0
  24  0  0  0
   0  0  0  0  0  0  1
  12 12  6  0  0
   0  0  0  0  0  0  0  1
   2 12  6  0  0
   0  3  6  4  2  0
		

Crossrefs

Column k = last is A010051.
Row lengths are A056239.
Initial zeros are counted by A252736 = A001222 - 1.
Row sums are A318762.
Column k = 0 is A335125.
For prime indices we have A386577.
Reversing all rows gives A386579.
A003242 and A335452 count anti-runs, ranks A333489, patterns A005649.
A025065(n - 2) counts partitions of inseparable type, ranks A335126, sums of A386586.
A124762 gives inseparability of standard compositions, separability A333382.
A305936 is a multiset whose multiplicities are the prime indices of n.
A325534 counts separable multisets, ranks A335433, sums of A386583.
A325535 counts inseparable multisets, ranks A335448, sums of A386584.
A336106 counts partitions of separable type, ranks A335127, sums of A386585.

Programs

  • Mathematica
    nrmptn[n_]:=Join@@MapIndexed[Table[#2[[1]],{#1}]&,If[n==1,{},Flatten[Cases[FactorInteger[n]//Reverse,{p_,k_}:>Table[PrimePi[p],{k}]]]]];
    aqt[c_,x_]:=Select[Permutations[c],Function[q,Length[Select[Range[Length[q]-1],q[[#]]==q[[#+1]]&]]==x]];
    Table[Table[Length[aqt[nrmptn[n],k]],{k,0,Length[nrmptn[n]]-1}],{n,30}]