login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A285881 Number of even squarefree numbers <= n. 1
0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 13, 13, 13, 13, 14, 14, 14, 14, 15, 15, 15, 15, 16, 16, 16, 16, 17, 17, 17, 17, 18, 18, 18, 18 (list; graph; refs; listen; history; text; internal format)
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
Sequence in context: A169990 A055679 A056172 * A091373 A197637 A235492
KEYWORD
nonn
AUTHOR
Ilya Gutkovskiy, Apr 27 2017
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified September 18 03:51 EDT 2024. Contains 375995 sequences. (Running on oeis4.)