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.
The median of a multiset is either the middle part (for odd length), or the average of the two middle parts (for even length).
These are Heinz numbers of partitions satisfying (maximum) = 2*(median).
EXAMPLE
The terms together with their prime indices begin:
12: {1,1,2}
24: {1,1,1,2}
42: {1,2,4}
48: {1,1,1,1,2}
60: {1,1,2,3}
63: {2,2,4}
72: {1,1,1,2,2}
96: {1,1,1,1,1,2}
126: {1,2,2,4}
130: {1,3,6}
140: {1,1,3,4}
144: {1,1,1,1,2,2}
The prime indices of 126 are {1,2,2,4}, with maximum 4 and median 2, so 126 is in the sequence.
The prime indices of 308 are {1,1,4,5}, with maximum 5 and median 5/2, so 308 is in the sequence.
MATHEMATICA
prix[n_]:=If[n==1, {}, Flatten[Cases[FactorInteger[n], {p_, k_}:>Table[PrimePi[p], {k}]]]];
Select[Range[100], Max@@prix[#]==2*Median[prix[#]]&]
CROSSREFS
KEYWORD
nonn
AUTHOR
Gus Wiseman, Apr 02 2023
STATUS
approved