OFFSET
1,2
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
Triangle begins:
1: .
2: .
3: .
4: 1
5: .
6: 2
7: .
8: 1 1
9: 1
10: 3
11: .
12: 1 2
13: .
14: 4
15: 2
16: 1 1 1
For example, the prime indices of 315 are (2,2,3,4), so row 315 is (2,3,4) - 2 + 1 = (1,2,3).
MATHEMATICA
primeMS[n_]:=If[n==1, {}, Flatten[Cases[FactorInteger[n], {p_, k_}:>Table[PrimePi[p], {k}]]]];
Table[If[n==1, {}, 1-First[primeMS[n]]+Rest[primeMS[n]]], {n, 100}]
CROSSREFS
KEYWORD
nonn,tabf
AUTHOR
Gus Wiseman, Dec 27 2022
STATUS
approved