cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A366078 The number of distinct prime factors of the cubefree part of n (A360539).

Original entry on oeis.org

0, 1, 1, 1, 1, 2, 1, 0, 1, 2, 1, 2, 1, 2, 2, 0, 1, 2, 1, 2, 2, 2, 1, 1, 1, 2, 0, 2, 1, 3, 1, 0, 2, 2, 2, 2, 1, 2, 2, 1, 1, 3, 1, 2, 2, 2, 1, 1, 1, 2, 2, 2, 1, 1, 2, 1, 2, 2, 1, 3, 1, 2, 2, 0, 2, 3, 1, 2, 2, 3, 1, 1, 1, 2, 2, 2, 2, 3, 1, 1, 0, 2, 1, 3, 2, 2, 2
Offset: 1

Views

Author

Amiram Eldar, Sep 28 2023

Keywords

Comments

The number of exponents smaller than 3 in the prime factorization of n.
The number of prime factors of the cubefree part of n (A360539), counted with multiplicity is A366077(n).

Crossrefs

Programs

  • Mathematica
    f[p_, e_] := If[e < 3, 1, 0]; a[1] = 0; a[n_] := Plus @@ f @@@ FactorInteger[n]; Array[a, 100]
  • PARI
    a(n) = vecsum(apply(x -> if(x < 3, 1, 0), factor(n)[, 2]));

Formula

a(n) = A001221(A360539(n)).
a(n) = A001221(n) - A295659(n).
Additive with a(p^e) = 1 if e <= 2, and a(p^e) = 0 for e >= 3.
a(n) >= 0, with equality if and only if n is cubefull (A036966).
a(n) <= A001221(n), with equality if and only if n is cubefree (A004709).
a(n) <= A366077(n), with equality if and only if n is squarefree (A005117).
Sum_{k=1..m} a(k) = n * (log(log(n)) + B - C) + O(n/log(n)), where B is Mertens's constant (A077761) and C = Sum_{p prime} 1/p^3 = 0.174762... (A085541).