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.
EXAMPLE
The terms together with their prime indices begin:
3: {2}
6: {1,2}
9: {2,2}
10: {1,3}
12: {1,1,2}
18: {1,2,2}
20: {1,1,3}
24: {1,1,1,2}
27: {2,2,2}
28: {1,1,4}
30: {1,2,3}
36: {1,1,2,2}
40: {1,1,1,3}
48: {1,1,1,1,2}
54: {1,2,2,2}
56: {1,1,1,4}
60: {1,1,2,3}
72: {1,1,1,2,2}
80: {1,1,1,1,3}
81: {2,2,2,2}
MATHEMATICA
prix[n_]:=If[n==1, {}, Flatten[Cases[FactorInteger[n], {p_, k_}:>Table[PrimePi[p], {k}]]]];
Select[Range[1000], Ceiling[Mean[prix[#]]]==2&]
CROSSREFS
KEYWORD
nonn
AUTHOR
Gus Wiseman, Jul 05 2023
STATUS
approved