|
|
A072504
|
|
a(n) = LCM of divisors of n which are <= sqrt(n).
|
|
5
|
|
|
1, 1, 1, 2, 1, 2, 1, 2, 3, 2, 1, 6, 1, 2, 3, 4, 1, 6, 1, 4, 3, 2, 1, 12, 5, 2, 3, 4, 1, 30, 1, 4, 3, 2, 5, 12, 1, 2, 3, 20, 1, 6, 1, 4, 15, 2, 1, 12, 7, 10, 3, 4, 1, 6, 5, 28, 3, 2, 1, 60, 1, 2, 21, 8, 5, 6, 1, 4, 3, 70, 1, 24, 1, 2, 15, 4, 7, 6, 1, 40, 9, 2, 1, 84, 5, 2, 3, 8, 1, 90, 7, 4, 3, 2, 5, 24
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,4
|
|
LINKS
|
|
|
EXAMPLE
|
a(20) = 4: the divisors of 20 are 1,2,4,5,10 and 20; a(20) = lcm(1,2,4) = 4.
|
|
MAPLE
|
local ds ;
ds := [] ;
for d in numtheory[divisors](n) do
if d^2 <= n then
ds := [op(ds), d] ;
end if;
end do:
ilcm(op(ds)) ;
end proc:
|
|
MATHEMATICA
|
Table[LCM@@Select[Divisors[n], #<=Sqrt[n]&], {n, 100}] (* Harvey P. Dale, Aug 26 2014 *)
|
|
PROG
|
(Haskell)
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|