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 alternating sum of a sequence (y_1,...,y_k) is Sum_i (-1)^(i-1) y_i. Of course, the alternating sum of prime indices is also the reverse-alternating sum of reversed prime indices.
EXAMPLE
The initial terms and their prime indices:
3: {2}
12: {1,1,2}
27: {2,2,2}
30: {1,2,3}
48: {1,1,1,1,2}
70: {1,3,4}
75: {2,3,3}
108: {1,1,2,2,2}
120: {1,1,1,2,3}
147: {2,4,4}
154: {1,4,5}
192: {1,1,1,1,1,1,2}
243: {2,2,2,2,2}
270: {1,2,2,2,3}
280: {1,1,1,3,4}
286: {1,5,6}
300: {1,1,2,3,3}
MATHEMATICA
primeMS[n_]:=If[n==1, {}, Flatten[Cases[FactorInteger[n], {p_, k_}:>Table[PrimePi[p], {k}]]]];
ats[y_]:=Sum[(-1)^(i-1)*y[[i]], {i, Length[y]}];
Select[Range[0, 100], ats[primeMS[#]]==2&]
CROSSREFS
These partitions are counted by A000097.
The k > 0 version is A026424.
These multisets are counted by A120452.
The k = -1 version is A345959.
The version for reversed alternating sum is A345961.
The k = -2 version is A345962.
A097805 counts compositions by alternating (or reverse-alternating) sum.
A344606 counts alternating permutations of prime indices.
KEYWORD
nonn
AUTHOR
Gus Wiseman, Jul 12 2021
STATUS
approved