OFFSET
1,2
LINKS
Michael De Vlieger, Table of n, a(n) for n = 1..10000
Eric Weisstein's World of Mathematics, Squarefree.
FORMULA
a(n) = n + A081221(n). - Amiram Eldar, Oct 10 2023
MAPLE
A067535 := proc(n)
for a from n do
if issqrfree(a) then
return a ;
end if;
end do:
end proc:
seq(A067535(n), n=1..100) ; # R. J. Mathar, May 31 2024
MATHEMATICA
Table[k = n; While[! SquareFreeQ@ k, k++]; k, {n, 62}] (* Michael De Vlieger, Mar 18 2017 *)
PROG
(PARI) a(n) = while (! issquarefree(n), n++); n; \\ Michel Marcus, Mar 18 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, Jan 27 2002
STATUS
approved