OFFSET
1,4
EXAMPLE
The greatest squarefree number <= 50 is 47, and the greatest squarefree number <= 51 is 51, so a(51) = 4.
MATHEMATICA
Differences[Table[NestWhile[#-1&, n, #>1&&!SquareFreeQ[#]&], {n, 100}]]
CROSSREFS
Ones are A007674.
Zeros are A013929 - 1.
Twos are A280892.
Positions of first appearances are A020755 - 1 (except first term).
First-differences of A070321.
The opposite version is A378087.
A005117 lists the squarefree numbers.
KEYWORD
nonn
AUTHOR
Gus Wiseman, Dec 04 2024
STATUS
approved