OFFSET
1,2
COMMENTS
The first positive squarefree integer is considered to be 1 here.
LINKS
Michael De Vlieger, Table of n, a(n) for n = 1..10000
MATHEMATICA
Block[{nn = 110, s}, s = Select[Range[nn], SquareFreeQ]; Map[If[# == 1, 1, SelectFirst[# - Range[0, # - 1], PrimePowerQ]] &, s]] (* Michael De Vlieger, Oct 30 2017 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Leroy Quet, Feb 17 2009
EXTENSIONS
Extended by Ray Chandler, Jun 19 2009
STATUS
approved