OFFSET
1,6
LINKS
Eric Weisstein's World of Mathematics, Squarefree
FORMULA
G.f.: Sum_{k>=1} x^A039956(k)/(1 - x).
a(n) ~ 2*n/Pi^2.
MATHEMATICA
Table[Sum[Boole[EvenQ[k] && SquareFreeQ[k]], {k, 1, n}], {n, 85}]
nmax = 85; Rest[CoefficientList[Series[Sum[Boole[EvenQ[k] && MoebiusMu[k]^2 == 1] x^k/(1 - x), {k, 1, nmax}], {x, 0, nmax}], x]]
PROG
(Python)
from sympy.ntheory.factor_ import core
def a(n): return sum([1 for k in range(1, n + 1) if k%2==0 and core(k)==k]) # Indranil Ghosh, Apr 28 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
Ilya Gutkovskiy, Apr 27 2017
STATUS
approved