OFFSET
1,1
EXAMPLE
The sequence of prime-powers (A246655) is:
2, 3, 4, 5, 7, 8, 9, 11, 13, 16, 17, 19, 23, 25, 27, 29, 31, 32, 37, ...
The sequence of first differences (A057820) of prime-powers is:
1, 1, 1, 2, 1, 1, 2, 2, 3, 1, 2, 4, 2, 2, 2, 2, 1, 5, 4, 2, 4, 2, 4, ...
with runs:
(1,1,1),(2),(1,1),(2,2),(3),(1),(2),(4),(2,2,2,2),(1),(5),(4),(2),(4), ...
with sums A376310 (this sequence).
MATHEMATICA
Total/@Split[Differences[Select[Range[100], PrimePowerQ]]]
CROSSREFS
For squarefree numbers instead of prime-powers we have A376307.
For compression instead of run-sums we have A376308.
For run-lengths instead of run-sums we have A376309.
A373948 encodes compression using compositions in standard order.
KEYWORD
nonn
AUTHOR
Gus Wiseman, Sep 22 2024
STATUS
approved