login
A067535
Smallest squarefree number >= n.
9
1, 2, 3, 5, 5, 6, 7, 10, 10, 10, 11, 13, 13, 14, 15, 17, 17, 19, 19, 21, 21, 22, 23, 26, 26, 26, 29, 29, 29, 30, 31, 33, 33, 34, 35, 37, 37, 38, 39, 41, 41, 42, 43, 46, 46, 46, 47, 51, 51, 51, 51, 53, 53, 55, 55, 57, 57, 58, 59, 61, 61, 62
OFFSET
1,2
LINKS
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