OFFSET
1,5
COMMENTS
LINKS
Michael De Vlieger, Table of n, a(n) for n = 1..10000
EXAMPLE
Let s = A001694, powerful numbers.
Let t = A013929, nonsquarefree numbers.
a(1..3) = 0 since t(1) = 12 while s(1) = 1, s(2) = 4, s(3) = 8, and s(4) = 9.
a(4) = 1 since s(5) < t(1) < s(6), i.e., 9 < 12 < 16.
a(5) = 3 since between s(6) = 16 and s(7) = 25, we have t(2..4) = {18, 20, 24}.
a(6) = 0 since s(7) < 26 < s(8), where s(8) = 27, and 26 is squarefree.
a(7) = 1 since s(8) < t(5) < s(9), where t(5) = 28 and s(9) = 32,
a(8) = 0 since there are no nonsquarefree numbers between s(9) = 32 and s(10) = 36, 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]] + 1, s[[i + 1]] - 1], _?(Not@*SquareFreeQ)], {i, Length[s] - 1}] ]
CROSSREFS
KEYWORD
nonn
AUTHOR
Michael De Vlieger, Dec 10 2024
STATUS
approved
