A336025 Numbers m providing record values for the proportion of nonsquarefree integers in the interval [1, m].
4, 9, 20, 25, 27, 28, 172, 176
Offset: 1
Examples
Up to m = 9 there are 3 numbers which are divisible by some square: 4, 8 and 9, for a proportion of 3/9 = 1/3. No interval [1, k] for k < 9 has a ratio as high, so 9 is in the sequence.
Links
- Kenneth Rogers, The Schnirelmann density of the squarefree integers, Proceedings of the American Mathematical Society, Vol. 15, No. 4 (1964), pp. 515-516.
Programs
-
Mathematica
s = {}; c = 0; rm = 0; Do[If[!SquareFreeQ[n], c++]; If[(r = c/n) > rm, rm = r; AppendTo[s, n]], {n, 1, 10^3}]; s (* Amiram Eldar, Mar 12 2021 *) Module[{nn=200},DeleteDuplicates[{#[[1]],#[[2]]/#[[1]]}&/@Thread[{Range[nn],Accumulate[ Table[If[SquareFreeQ[n],0,1],{n,nn}]]}],GreaterEqual[#1[[2]],#2[[2]]]&]][[;;,1]]//Rest (* Harvey P. Dale, Jun 15 2024 *)
Comments