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.
Also numbers whose trimmed 0-based partial alternating sums of prime indices are all equal. Here, the k-based partial alternating sums of a finite sequence q are given by pas(q,k)_j = (-1)^j * k + Sum_{i=1..j} (-1)^(i+j) * q_i. This is a signed version of the partial sums transformation, inverse to the "first sums" transformation.
FORMULA
Consists of 1 and all numbers of the form prime(x) * prime(2x)^y for some x > 0, y >= 0.
EXAMPLE
The terms together with their prime indices begin:
1: {}
2: {1}
3: {2}
5: {3}
6: {1,2}
7: {4}
11: {5}
13: {6}
17: {7}
18: {1,2,2}
19: {8}
21: {2,4}
23: {9}
29: {10}
31: {11}
37: {12}
41: {13}
43: {14}
47: {15}
53: {16}
54: {1,2,2,2}
59: {17}
MATHEMATICA
prix[n_]:=If[n==1, {}, Flatten[Cases[FactorInteger[n], {p_, k_}:>Table[PrimePi[p], {k}]]]];
pas[y_, k_]:=Table[(-1)^j*k+Sum[(-1)^(i+j)*y[[i]], {i, j}], {j, 0, Length[y]}];
Select[Range[300], SameQ@@Rest[pas[prix[#], 0]]&]
CROSSREFS
KEYWORD
nonn
AUTHOR
Gus Wiseman, Jan 27 2026
STATUS
approved
