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!)
A374460 Indices of the nonsquarefree terms in the sequence of exponentially odd numbers (A268335). 3
7, 18, 20, 24, 31, 39, 41, 63, 69, 74, 86, 89, 91, 97, 98, 109, 115, 121, 131, 135, 154, 161, 167, 174, 177, 179, 189, 194, 200, 211, 212, 223, 234, 243, 244, 249, 250, 265, 266, 268, 273, 290, 296, 302, 314, 325, 328, 338, 343, 348, 350, 366, 367, 373, 382, 388, 393 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
The asymptotic density of this sequence is 1 - A059956 / A065463 = 0.13700925215474602945... .
LINKS
FORMULA
A268335(a(n)) = A374459(n).
EXAMPLE
The first 7 exponentially odd numbers are 1, 2, 3, 5, 6, 7, and 8. A268335(7) = 8 = 3^3 is the least nonsquarefree term. Therefore a(1) = 7.
MATHEMATICA
Position[Select[Range[120], AllTrue[FactorInteger[#][[;; , 2]], OddQ] &], _?(!SquareFreeQ[#] &), Heads -> False] // Flatten
PROG
(PARI) isexpodd(k) = {my(e = factor(k)[, 2]); for(i = 1, #e, if(!(e[i] % 2), return(0))); 1; }
lista(kmax) = {my(f, c = 0); for(k = 1, kmax, if(isexpodd(k), c++; if(!issquarefree(k), print1(c, ", ")))); }
CROSSREFS
Similar sequences: A361936, A363189, A371186, A371188.
Sequence in context: A103570 A223247 A091832 * A256011 A272972 A070609
KEYWORD
nonn,easy
AUTHOR
Amiram Eldar, Jul 09 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 July 26 09:25 EDT 2024. Contains 374628 sequences. (Running on oeis4.)