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 nonprime 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: {}
6: {1,2}
18: {1,2,2}
21: {2,4}
54: {1,2,2,2}
65: {3,6}
133: {4,8}
147: {2,4,4}
162: {1,2,2,2,2}
319: {5,10}
481: {6,12}
486: {1,2,2,2,2,2}
731: {7,14}
845: {3,6,6}
MATHEMATICA
Select[Range[100], !PrimeQ[#]&&SameQ@@Rest[pas[prix[#], 0]]&]
CROSSREFS
A344606 counts alternating permutations of prime indices.
KEYWORD
nonn
AUTHOR
Gus Wiseman, Jan 29 2026
STATUS
approved
