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.

A371188 Indices of the squarefree numbers in the sequence of cubefree numbers.

Original entry on oeis.org

1, 2, 3, 5, 6, 7, 9, 10, 12, 13, 14, 15, 17, 19, 20, 21, 23, 25, 26, 27, 28, 29, 30, 32, 33, 34, 35, 36, 37, 40, 41, 44, 46, 47, 48, 49, 50, 52, 53, 55, 56, 57, 59, 60, 61, 62, 63, 66, 67, 68, 69, 70, 72, 73, 74, 75, 77, 79, 80, 81, 82, 86, 87, 88, 89, 90, 91
Offset: 1

Views

Author

Amiram Eldar, Mar 14 2024

Keywords

Comments

The asymptotic density of this sequence is zeta(3)/zeta(2) = 0.730762... (A253905).

Examples

			The first 5 cubefree numbers are 1, 2, 3, 4, and 5. The 1st, 2nd, 3rd, and 5th, 1, 2, 3, and 5, are squarefree. Therefore, the first 4 terms of this sequence are 1, 2, 3, and 5.
		

Crossrefs

Programs

  • Mathematica
    freeQ[n_, k_] := AllTrue[FactorInteger[n], Last[#] < k &]; Position[Select[Range[200], freeQ[#, 3] &], _?(freeQ[#1, 2] &), Heads -> False] // Flatten
  • PARI
    isfree(n, k) = n == 1 || vecmax(factor(n)[, 2]) < k;
    lista(kmax) = {my(c = 0); for(k = 1, kmax, if(isfree(k, 3), c++; if(isfree(k, 2), print1(c, ", "))));}

Formula

A004709(a(n)) = A005117(n).
a(n) ~ c * n, where c = zeta(2)/zeta(3) = 1.368432... (A306633).