OFFSET
1,2
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
FORMULA
From Robert Israel, Mar 19 2018: (Start)
If n = p^k for prime p, then a(n) = p^ceiling(k/2).
In particular, a(n) = n if and only if n is prime.
If n = p*q for primes p < q, then a(n) = q. (End)
EXAMPLE
a(20) = 5: the divisors of 20 are 1,2,4,5,10 and 20; a(20) = 20/lcm(1,2,4) = 20/4 = 5.
MAPLE
f:= proc(n) n/ilcm(op(select(t -> t^2 <= n, numtheory:-divisors(n)))) end proc:
map(f, [$1..100]); # Robert Israel, Mar 19 2018
MATHEMATICA
lc[n_]:=Module[{c=Select[Divisors[n], #<=Sqrt[n]&]}, n/LCM@@c]; Array[lc, 90] (* Harvey P. Dale, May 18 2012 *)
CROSSREFS
KEYWORD
nonn,look
AUTHOR
Amarnath Murthy, Jul 20 2002
EXTENSIONS
Corrected and extended by Matthew Conroy, Sep 09 2002
STATUS
approved