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:
2: {1}
4: {1,1}
5: {3}
8: {1,1,1}
10: {1,3}
11: {5}
16: {1,1,1,1}
17: {7}
20: {1,1,3}
22: {1,5}
23: {9}
25: {3,3}
30: {1,2,3}
31: {11}
32: {1,1,1,1,1}
34: {1,7}
40: {1,1,1,3}
41: {13}
44: {1,1,5}
46: {1,9}
47: {15}
50: {1,3,3}
MATHEMATICA
prix[n_]:=If[n==1, {}, Flatten[Cases[FactorInteger[n], {p_, k_}:>Table[PrimePi[p], {k}]]]];
Select[Range[2, 100], OddQ[First[prix[#]]*Last[prix[#]]]&]
CROSSREFS
The case where all prime indices are odd is A066208.
A001222 counts prime factors.
A031368 lists odd-indexed primes.
A055396 selects least prime index.
A056239 adds up prime indices.
A061395 selects greatest prime index.
A112798 lists the prime indices of each positive integer.
KEYWORD
nonn
AUTHOR
Gus Wiseman, Dec 05 2025
STATUS
approved
