login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A366522
Largest squarefree divisor of n which is < sqrt(n), for n >= 2; a(1) = 1.
2
1, 1, 1, 1, 1, 2, 1, 2, 1, 2, 1, 3, 1, 2, 3, 2, 1, 3, 1, 2, 3, 2, 1, 3, 1, 2, 3, 2, 1, 5, 1, 2, 3, 2, 5, 3, 1, 2, 3, 5, 1, 6, 1, 2, 5, 2, 1, 6, 1, 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, 5
OFFSET
1,6
LINKS
MATHEMATICA
Join[{1}, Table[Last[Select[Divisors[n], # < Sqrt[n] && SquareFreeQ[#] &]], {n, 2, 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