OFFSET
1,1
COMMENTS
If there are multiple modes, then the mode is automatically considered different from the mean and median; otherwise, we take the unique mode.
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 prime indices of 180 are {1,1,2,2,3}, with mean 9/5, median 2, modes {1,2}, so 180 is in the sequence.
The prime indices of 108 are {1,1,2,2,2}, with mean 8/5, median 2, modes {2}, so 108 is not in the sequence.
The terms together with their prime indices begin:
42: {1,2,4}
60: {1,1,2,3}
66: {1,2,5}
70: {1,3,4}
78: {1,2,6}
84: {1,1,2,4}
102: {1,2,7}
114: {1,2,8}
130: {1,3,6}
132: {1,1,2,5}
138: {1,2,9}
140: {1,1,3,4}
150: {1,2,3,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[100], {Mean[prix[#]]}!={Median[prix[#]]}!=modes[prix[#]]&]
CROSSREFS
KEYWORD
nonn
AUTHOR
Gus Wiseman, Jun 24 2023
STATUS
approved