editing
approved
editing
approved
reviewed
approved
proposed
reviewed
editing
proposed
We define the weighted alternating sum of a sequence (y_1,...,y_k) to be Sum_{i=1..k} (-1)^(i-1) i * y_i.
The prime indices of 300 are {1,1,2,3,3}, with weighted alternating sum 1*1 - 2*1 + 3*2 - 4*3 + 5*3 = 8, so a(300) = 8.
approved
editing
proposed
approved
editing
proposed
We define the weighted alternating sum of a sequence (y_1,...,y_k) to be Sum_{i=1..k} (-1)^(i-1) i * y_i.
The non-alternating version is A304818, row-sums of A359361reverse A318283.
The reverse non-alternating version is A318283, row-sums of A358136.
A053632 counts compositions by weighted sum.
`A304442 counts partitions with all equal run-sums.
`A358134 gives partial sums of standard compositions, sum A359042.
Cf. `A000009, A000720, `A001221, A046660, A053632, A106529, `A118914, `A124010, A181819, ~A215366, ~A359755A261079, A363529, A363532, A363621, A363626.
Cf. `A000009, `A000016, ~A008284, `A261079, `A358137, ~A362559, ~A362560, `A363529, ~A363530, ~A363531, `A363532, A363621, A363626.