OFFSET
1,2
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). Since the denominator is always 1 or 2, the median can be represented as an integer by multiplying by 2.
EXAMPLE
The prime indices of 65 are {3,6}, with distinct parts {3,6}, with median 9/2, so a(65) = 9.
The prime indices of 900 are {1,1,2,2,3,3}, with distinct parts {1,2,3}, with median 2, so a(900) = 4.
MATHEMATICA
Table[If[n==1, 1, 2*Median[PrimePi/@First/@FactorInteger[n]]], {n, 100}]
CROSSREFS
The version for divisors is A063655.
The version for all prime indices is A360005.
The version for distinct prime factors is A360458.
The version for all prime factors is A360459.
The version for prime multiplicities is A360460.
Positions of even terms are A360550.
Positions of odd terms are A360551.
The version for 0-prepended differences is A360555.
A304038 lists distinct prime indices.
KEYWORD
nonn
AUTHOR
Gus Wiseman, Feb 14 2023
STATUS
approved