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).
FORMULA
EXAMPLE
The terms together with their prime indices begin:
4: {1,1}
8: {1,1,1}
9: {2,2}
16: {1,1,1,1}
25: {3,3}
27: {2,2,2}
32: {1,1,1,1,1}
49: {4,4}
64: {1,1,1,1,1,1}
81: {2,2,2,2}
90: {1,2,2,3}
121: {5,5}
125: {3,3,3}
128: {1,1,1,1,1,1,1}
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[100], !PrimeQ[#]&&{Mean[prix[#]]}=={Median[prix[#]]}==modes[prix[#]]&]
CROSSREFS
KEYWORD
nonn
AUTHOR
Gus Wiseman, Jun 24 2023
STATUS
approved