OFFSET
1,1
COMMENTS
LINKS
Michael De Vlieger, Table of n, a(n) for n = 1..10000
Michael De Vlieger, Log log scatterplot of a(n), n = 1..11210, rendering a(n) = 0 instead as 1/2 for visibility.
EXAMPLE
We partition S = A126706 by numbers k in A286708 (in brackets) and derive the following irregular table:
12, 18, 20, 24, 28, [36]; hence a(1) = 5,
40, 44, 45, 48, 50, 52, 54, 56, 60, 63, 68, [72]; a(2) = 11,
75, 76, 80, 84, 88, 90, 92, 96, 98, 99, [100]; a(3) = 10,
104, [108]; a(4) = 1,
112, 116, 117, 120, 124, 126, 132, 135, 136, 140, [144]; a(5) = 10, etc.
MATHEMATICA
s = Select[Range[2^16], Nor[SquareFreeQ[#], PrimePowerQ[#]] &]; -1 + Length /@ TakeList[s, Prepend[Differences[#], First[#]] &@ Position[s, _Integer?(Divisible[#, Apply[Times, FactorInteger[#][[All, 1]] ]^2] &)][[All, 1]] ]
CROSSREFS
KEYWORD
nonn,easy,new
AUTHOR
Michael De Vlieger, Dec 04 2024
STATUS
approved