OFFSET
1,2
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
MAPLE
n:= 0:
for m from 1 while n <= 100 do
if numtheory:-issqrfree(m) then s:= m fi;
if nops(numtheory:-factorset(m)) <= 1 then n:= n+1; A[n]:= s fi
od:
seq(A[i], i=1..100); # Robert Israel, Jan 08 2018
MATHEMATICA
nmax = 100; coeff = 5;
A000961 = Join[{1}, Select[Range[2, coeff*nmax], PrimePowerQ]];
a070321[n_] := For[k = n, True, k--, If[SquareFreeQ[k], Return[k]]];
a[n_] := If[n > Length[A000961], Print["error: increase insufficient coeff ", coeff], a070321[A000961[[n]] ] ];
Array[a, nmax] (* Jean-François Alcover, Mar 08 2019 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, Mar 10 2003
STATUS
approved