[go: up one dir, main page]

login
A366521
Largest squarefree divisor of n which is <= sqrt(n).
2
1, 1, 1, 2, 1, 2, 1, 2, 3, 2, 1, 3, 1, 2, 3, 2, 1, 3, 1, 2, 3, 2, 1, 3, 5, 2, 3, 2, 1, 5, 1, 2, 3, 2, 5, 6, 1, 2, 3, 5, 1, 6, 1, 2, 5, 2, 1, 6, 7, 5, 3, 2, 1, 6, 5, 7, 3, 2, 1, 6, 1, 2, 7, 2, 5, 6, 1, 2, 3, 7, 1, 6, 1, 2, 5, 2, 7, 6, 1, 5, 3, 2, 1, 7, 5, 2, 3, 2, 1, 6, 7, 2, 3, 2, 5, 6, 1, 7, 3, 10
OFFSET
1,4
LINKS
MATHEMATICA
Table[Last[Select[Divisors[n], # <= Sqrt[n] && SquareFreeQ[#] &]], {n, 100}]
PROG
(PARI) a(n) = {my(m=1); fordiv(n, d, if(d^2 <= n && issquarefree(d), m=max(m, d))); m} \\ Andrew Howroyd, Oct 11 2023
CROSSREFS
KEYWORD
nonn
AUTHOR
Ilya Gutkovskiy, Oct 11 2023
STATUS
approved