OFFSET
1,1
LINKS
Michael De Vlieger, Table of n, a(n) for n = 1..10000
EXAMPLE
a(1) = 3 since {[1], 2, 3, [4]} has 3 squarefree numbers.
a(2) = 3 since {[4], 5, 6, 7, [8]} has 3 squarefree numbers.
a(3) = 0 since {[8], [9]} has no squarefree numbers.
a(4) = 5 since between 9 and 16, {10, 11, 13, 14, 15} are squarefree.
a(5) = 5 since between 16 and 25, {17, 19, 21, 22, 23} are squarefree, etc.
MATHEMATICA
With[{nn = 2^12},
s = Union@ Flatten@ Table[a^2*b^3, {b, Surd[nn, 3]}, {a, Sqrt[nn/b^3]}]; Table[Count[Range[s[[i]], s[[i + 1]]], _?SquareFreeQ], {i, Length[s] - 1}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Michael De Vlieger, Dec 09 2024
STATUS
approved