OFFSET
1,2
COMMENTS
A prime index of n is a number m such that prime(m) divides n. The multiset of prime indices of n is row n of A112798.
These are also numbers with the same number of adjacent equal prime indices as adjacent unequal prime indices.
EXAMPLE
The prime indices of 2640 are {1,1,1,1,2,3,5}, with 4 distinct parts {1,2,3,5} and 4 maximal anti-runs ((1),(1),(1),(2,3,5)), so 2640 is in the sequence.
The terms together with their prime indices begin:
1: {}
2: {1}
3: {2}
5: {3}
7: {4}
11: {5}
12: {1,1,2}
13: {6}
17: {7}
18: {1,2,2}
19: {8}
20: {1,1,3}
23: {9}
28: {1,1,4}
29: {10}
31: {11}
37: {12}
41: {13}
43: {14}
44: {1,1,5}
45: {2,2,3}
47: {15}
MATHEMATICA
prix[n_]:=If[n==1, {}, Flatten[Cases[FactorInteger[n], {p_, k_}:>Table[PrimePi[p], {k}]]]];
Select[Range[100], #==1||PrimeNu[#]==Length[Split[prix[#], UnsameQ]]&]
CROSSREFS
These partitions are counted by A385574.
KEYWORD
nonn
AUTHOR
Gus Wiseman, Jul 04 2025
STATUS
approved
