OFFSET
1,9
FORMULA
a(n) = n - A070321(n).
MATHEMATICA
Table[n-NestWhile[#-1&, n, !SquareFreeQ[#]&], {n, 100}]
PROG
(Python)
from itertools import count
from sympy import factorint
def A378619(n): return n-next(m for m in count(n, -1) if max(factorint(m).values(), default=0)<=1) # Chai Wah Wu, Dec 14 2024
CROSSREFS
KEYWORD
nonn,new
AUTHOR
Gus Wiseman, Dec 12 2024
STATUS
approved