A376311 Position of first appearance of n in the sequence of first differences of squarefree numbers, or the sequence ends if there is none.
1, 3, 6, 31, 150, 515, 13391, 131964, 664313, 5392318, 159468672, 134453711, 28728014494, 50131235121, 634347950217, 48136136076258, 1954623227727573, 14433681032814706, 76465679305346797
Offset: 1
Examples
The sequence of squarefree numbers (A005117) is: 1, 2, 3, 5, 6, 7, 10, 11, 13, 14, 15, 17, 19, 21, 22, 23, 26, 29, 30, ... The sequence of first differences (A076259) of squarefree numbers is: 1, 1, 2, 1, 1, 3, 1, 2, 1, 1, 2, 2, 2, 1, 1, 3, 3, 1, 1, 2, 1, 1, 2, 1, ... The positions of first appearances are a(n).
Crossrefs
Programs
-
Mathematica
mnrm[s_]:=If[Min@@s==1,mnrm[DeleteCases[s-1,0]]+1,0]; q=Differences[Select[Range[10000],SquareFreeQ]]; Table[Position[q,k][[1,1]],{k,mnrm[q]}]
Extensions
a(11)-a(19) from Amiram Eldar, Sep 24 2024