OFFSET
1,1
COMMENTS
The median of a multiset is either the middle part (for odd length), or the average of the two middle parts (for even length).
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.
EXAMPLE
The terms together with their prime indices begin:
2: {1}
9: {2,2}
10: {1,3}
50: {1,3,3}
70: {1,3,4}
75: {2,3,3}
105: {2,3,4}
110: {1,3,5}
125: {3,3,3}
130: {1,3,6}
165: {2,3,5}
170: {1,3,7}
175: {3,3,4}
MATHEMATICA
prix[n_]:=If[n==1, {}, Flatten[Cases[FactorInteger[n], {p_, k_}:>Table[PrimePi[p], {k}]]]];
Select[Range[1000], PrimeOmega[#]==Median[prix[#]]&]
CROSSREFS
KEYWORD
nonn
AUTHOR
Gus Wiseman, May 29 2023
STATUS
approved