OFFSET
1,7
LINKS
Jinyuan Wang, Table of n, a(n) for n = 1..10000
FORMULA
MATHEMATICA
nsfQ[n_] := n == 1 || ! SquareFreeQ[n]; Abs[Accumulate[Table[If[nsfQ[n], 1, 0] - If[PrimeQ[n], 1, 0], {n, 1, 100}]]] (* Amiram Eldar, Jun 13 2022 *)
PROG
(PARI) a(n) = abs(sum(k=1, n, !issquarefree(k)) + 1 - primepi(n)); \\ Michel Marcus, Mar 27 2020
CROSSREFS
KEYWORD
nonn
AUTHOR
Anonymous, Apr 15 2003
EXTENSIONS
Name edited by Michel Marcus, Jun 14 2022
STATUS
approved