OFFSET
1,1
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.
A mode in a multiset is an element that appears at least as many times as each of the others. For example, the modes in {a,a,b,b,b,c,d,d,d} are {b,d}.
The median of a multiset is either the middle part (for odd length), or the average of the two middle parts (for even length).
EXAMPLE
The prime indices of 6897 are {2,5,5,8}, with mean 5, median 5, and modes {5}, so 6897 is in the sequence.
The terms together with their prime indices begin:
90: {1,2,2,3}
270: {1,2,2,2,3}
525: {2,3,3,4}
550: {1,3,3,5}
756: {1,1,2,2,2,4}
810: {1,2,2,2,2,3}
1666: {1,4,4,7}
1911: {2,4,4,6}
1950: {1,2,3,3,6}
2268: {1,1,2,2,2,2,4}
2430: {1,2,2,2,2,2,3}
MATHEMATICA
prix[n_]:=If[n==1, {}, Flatten[Cases[FactorInteger[n], {p_, k_}:>Table[PrimePi[p], {k}]]]];
modes[ms_]:=Select[Union[ms], Count[ms, #]>=Max@@Length/@Split[ms]&];
Select[Range[1000], !PrimePowerQ[#]&&{Mean[prix[#]]}=={Median[prix[#]]}==modes[prix[#]]&]
CROSSREFS
For just primes instead of prime powers we have A363722.
These partitions are counted by A363728.
A360005 gives twice the median of prime indices.
Just two statistics:
- (median) = (mode): counted by A363740.
KEYWORD
nonn
AUTHOR
Gus Wiseman, Jun 24 2023
STATUS
approved