OFFSET
1,1
EXAMPLE
The sequence of squarefree numbers (A005117) is:
1, 2, 3, 5, 6, 7, 10, 11, 13, 14, 15, 17, 19, 21, 22, 23, 26, 29, 30, ...
The sequence of first differences (A076259) of squarefree numbers is:
1, 1, 2, 1, 1, 3, 1, 2, 1, 1, 2, 2, 2, 1, 1, 3, 3, 1, 1, 2, 1, 1, 2, 1, ...
with runs:
(1,1),(2),(1,1),(3),(1),(2),(1,1),(2,2,2),(1,1),(3,3),(1,1),(2),(1,1), ...
with sums A376307 (this sequence).
MATHEMATICA
Total/@Split[Differences[Select[Range[100], SquareFreeQ]]]
CROSSREFS
Run-sums of first differences of A005117.
For the squarefree numbers themselves we have A373413.
For run-lengths instead of run-sums we have A376306.
For prime-powers instead of squarefree numbers we have A376310.
For positions of first appearances instead of run-sums we have A376311.
KEYWORD
nonn
AUTHOR
Gus Wiseman, Sep 21 2024
STATUS
approved