OFFSET
1,1
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
FORMULA
EXAMPLE
a(1) = 2 since the 1st noncubefree number is A046099(1) = 8 = 2^3. It has 3 prime factors when counted with multiplicity, and 1 distinct prime factor, so a(1) = 3 - 1 = 2.
MATHEMATICA
f[n_] := Module[{e = FactorInteger[n][[;; , 2]]}, If[Max[e] < 3, Nothing, Total[e] - Length[e]]]; Array[f, 100]
PROG
(PARI) list(lim) = {my(e); for(k = 2, lim, e = factor(k)[, 2]; if(vecmax(e) > 2, print1(vecsum(e) - #e, ", "))); }
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Amiram Eldar, Apr 10 2025
STATUS
approved
