OFFSET
1,9
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 1..10000
FORMULA
a(n) ~ c * n, where c = 1/zeta(3) - 1/zeta(2) = A088453 - A059956 = 0.22398... - Amiram Eldar, Feb 16 2021
MATHEMATICA
Accumulate @ Table[Boole[Max @ FactorInteger[n][[;; , 2]] == 2], {n, 1, 100}] (* Amiram Eldar, Feb 16 2021 *)
PROG
(Haskell)
a072358 n = a072358_list !! (n-1)
a072358_list = scanl1 (+) $
zipWith (*) a212793_list $ map (1 -) a008966_list
-- Reinhard Zumkeller, May 27 2012
(Python)
from math import isqrt
from sympy import mobius, integer_nthroot
def A072358(n): return sum(mobius(k)*(n//k**3-n//k**2) for k in range(1, integer_nthroot(n, 3)[0]+1))-sum(mobius(k)*(n//k**2) for k in range(integer_nthroot(n, 3)[0]+1, isqrt(n)+1)) # Chai Wah Wu, Aug 12 2024
CROSSREFS
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, Jul 18 2002
STATUS
approved