OFFSET
1,2
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
FORMULA
EXAMPLE
a(99) = a(3*3*11) -> 3*3*[11->2*5] = 3*3*2*5 = 90.
MATHEMATICA
g[p_] := (* greatest semiprime less than prime p *) g[p] = For[k = p - 1, True, k--, If[PrimeOmega[k] == 2, Return[k]]];
a[n_] := Product[{p, e} = pe; If[p <= 3, p, g[p]]^e, {pe, FactorInteger[n]}];
a /@ Range[1, 100] (* Jean-François Alcover, Sep 27 2019 *)
CROSSREFS
KEYWORD
nonn,mult
AUTHOR
Reinhard Zumkeller, Jan 09 2005
STATUS
approved