OFFSET
1,2
EXAMPLE
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).
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]}]
CROSSREFS
KEYWORD
nonn,more
AUTHOR
Gus Wiseman, Sep 22 2024
EXTENSIONS
a(11)-a(19) from Amiram Eldar, Sep 24 2024
STATUS
approved