OFFSET
1,2
COMMENTS
Conjecture: There exists some constant, k, approximately equal to 1.2, such that a(n) is of average order k*n/log(n). See Tooth Link for evidence.
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
FORMULA
EXAMPLE
a(12)=2 because the largest factor of 12, which is not greater than sqrt(12), is 3; and ceiling(12/3^2)=2.
MAPLE
f:= proc(n) local d;
d:= max(select(t -> t^2 <= n, numtheory:-divisors(n)));
ceil(n/d^2)
end proc:
map(f, [$1..100]); # Robert Israel, Apr 30 2025
MATHEMATICA
a[n_]:=Ceiling[n/(Select[Divisors[n], #<=Sqrt[n]&][[-1]])^2]; Array[a, 89] (* James C. McMahon, Apr 07 2025 *)
PROG
(PARI) a(n) = my(d=divisors(n)); ceil(n/d[(length(d)+1)\2]^2); \\ Michel Marcus, Apr 07 2025
CROSSREFS
KEYWORD
nonn,look
AUTHOR
Clive Tooth, Mar 30 2025
STATUS
approved
