OFFSET
1,3
COMMENTS
FORMULA
a(n) = n - A378367(n).
MATHEMATICA
Table[n-NestWhile[#-1&, n, PrimePowerQ[#]&], {n, 100}]
CROSSREFS
Sequences obtained by subtracting each term from n are placed in parentheses below.
For squarefree we have (A070321).
For nonsquarefree we have (A378033).
Subtracting from n gives (A378367).
KEYWORD
nonn,new
AUTHOR
Gus Wiseman, Nov 29 2024
STATUS
approved