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”).

A366520
Largest odd divisor of n which is < sqrt(n), for n >= 2; a(1) = 1.
2
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 1, 1, 3, 1, 1, 3, 1, 1, 3, 1, 1, 3, 1, 1, 3, 1, 1, 5, 1, 1, 3, 1, 5, 3, 1, 1, 3, 5, 1, 3, 1, 1, 5, 1, 1, 3, 1, 5, 3, 1, 1, 3, 5, 7, 3, 1, 1, 5, 1, 1, 7, 1, 5, 3, 1, 1, 3, 7, 1, 3, 1, 1, 5, 1, 7, 3, 1, 5, 3, 1, 1, 7, 5, 1, 3, 1, 1, 9, 7, 1, 3, 1, 5, 3, 1, 7, 9, 5
OFFSET
1,12
LINKS
MATHEMATICA
Join[{1}, Table[Last[Select[Divisors[n], # < Sqrt[n] && OddQ[#] &]], {n, 2, 100}]]
PROG
(PARI) a(n) = {my(m=1); fordiv(n/2^valuation(n, 2), d, if(d^2 < n, m=max(m, d))); m} \\ Andrew Howroyd, Oct 11 2023
CROSSREFS
KEYWORD
nonn
AUTHOR
Ilya Gutkovskiy, Oct 11 2023
STATUS
approved