A376265 Position of first appearance of n in A376264 (run-sums of first differences of nonsquarefree numbers), or 0 if there are none.
2, 8, 3, 1, 6222, 14, 308540, 18
Offset: 1
Examples
The sequence of nonsquarefree numbers (A013929) is: 4, 8, 9, 12, 16, 18, 20, 24, 25, 27, 28, 32, 36, 40, 44, 45, 48, 49, 50, ... with first differences (A078147): 4, 1, 3, 4, 2, 2, 4, 1, 2, 1, 4, 4, 4, 4, 1, 3, 1, 1, 2, 2, 2, 4, 3, 1, ... with runs: (4),(1),(3),(4),(2,2),(4),(1),(2),(1),(4,4,4,4),(1),(3),(1,1),(2,2,2), ... with sums (A376264): 4, 1, 3, 4, 4, 4, 1, 2, 1, 16, 1, 3, 2, 6, 4, 3, 1, 8, 3, 1, 4, 1, 3, 4, 4, ... with first appearances at (A376265): 2, 8, 3, 1, 6222, 14, 308540, 18, ...
Crossrefs
This is the position of first appearance of n in A376264.
The sorted version is A376266.
For run-lengths instead of firsts of run-sums we have A376267.
For compression instead of firsts of run-sums we have A376312.
A333254 lists run-lengths of differences between consecutive primes.
A376305 gives run-compression of first differences of squarefree numbers.
A376307 gives run-sums of first differences of squarefree numbers.
Programs
-
Mathematica
mnrm[s_]:=If[Min@@s==1,mnrm[DeleteCases[s-1,0]]+1,0]; q=Total/@Split[Differences[Select[Range[10000],!SquareFreeQ[#]&]]]//Most; Table[Position[q,k][[1,1]],{k,mnrm[q]}]
Formula
A376264(a(n)) = n.