OFFSET
1,2
EXAMPLE
The nonsquarefree numbers between prime(24) = 89 and prime(25) = 97 are {90, 92, 96}, so a(24) = 278.
MATHEMATICA
Table[Total[Select[Range[Prime[n], Prime[n+1]], !SquareFreeQ[#]&]], {n, 100}]
CROSSREFS
For prime instead of nonsquarefree we have A001043.
For composite instead of nonsquarefree we have A054265.
Zeros are A068361.
A070321 gives the greatest squarefree number up to n.
A120327 gives the least nonsquarefree number >= n.
- sum is A373197
- length is A061399
- sum is A378618 (this)
KEYWORD
nonn,new
AUTHOR
Gus Wiseman, Dec 09 2024
STATUS
approved