OFFSET
1,9
LINKS
Michael De Vlieger, Table of n, a(n) for n = 1..10000
EXAMPLE
Let S = A126706, the sequence of k neither squarefree nor prime powers.
a(1..4) = 0 since S(1) = 12.
a(5) = 1 since (11, 12, 13) contains S(1) = 12.
a(6) = 0 since (13, 14, 15, 16, 17) contains no number in S.
a(7) = 1 since (17, 18, 19) contains S(2) = 18.
a(8) = 1 since (19, 20, 21, 22, 23) contains S(3) = 20.
a(9) = 2 since (23, 24, 25, 26, 27, 28, 29) contains S(4) = 24 and S(5) = 28, etc.
MATHEMATICA
Table[Count[Range[Prime[i] + 1, Prime[i + 1] - 1], _?(Nor[SquareFreeQ[#], PrimePowerQ[#]] &)], {i, 120}]
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Michael De Vlieger, Dec 03 2024
STATUS
approved