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!)
A371188 Indices of the squarefree numbers in the sequence of cubefree numbers. 1
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 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
The asymptotic density of this sequence is zeta(3)/zeta(2) = 0.730762... (A253905).
LINKS
FORMULA
A004709(a(n)) = A005117(n).
a(n) ~ c * n, where c = zeta(2)/zeta(3) = 1.368432... (A306633).
EXAMPLE
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.
MATHEMATICA
freeQ[n_, k_] := AllTrue[FactorInteger[n], Last[#] < k &]; Position[Select[Range[200], freeQ[#, 3] &], _?(freeQ[#1, 2] &), Heads -> False] // Flatten
PROG
(PARI) isfree(n, k) = n == 1 || vecmax(factor(n)[, 2]) < k;
lista(kmax) = {my(f, c = 0); for(k = 1, kmax, if(isfree(k, 3), c++; if(isfree(k, 2), print1(c, ", ")))); }
CROSSREFS
Sequence in context: A101886 A284509 A135674 * A195121 A047332 A248233
KEYWORD
nonn,easy
AUTHOR
Amiram Eldar, Mar 14 2024
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 May 7 02:26 EDT 2024. Contains 372298 sequences. (Running on oeis4.)