OFFSET
1,4
COMMENTS
LINKS
Giovanni Resta, Table of n, a(n) for n = 1..10000
FORMULA
EXAMPLE
a(40)=a(2^3*5)=2^3=8.
MAPLE
A203025 := proc(n)
local a, d;
a := 1;
for d in numtheory[divisors](n) do
if isA001597(d) then # implemented in A001597
a := max(a, d) ;
end if;
end do:
return a;
end proc: # R. J. Mathar, Jun 09 2016
MATHEMATICA
Table[If[SquareFreeQ[n], 1, s = FactorInteger[n]; Max[Table[Times @@ Cases[s, {p_, ep_} :> p^i /; (ep >= i)], {i, 2, Max[s[[All, 2]]]}]]], {n, 100}] (* Olivier Gerard, Jun 03 2016 *)
PROG
(PARI) a(n)=my(f=factor(n), mx=1); for(e=2, if(n>1, vecmax(f[, 2])), mx=max(mx, prod(i=1, #f[, 1], f[i, 1]^(f[i, 2]\e*e)))); mx \\ Charles R Greathouse IV, Dec 28 2011
CROSSREFS
KEYWORD
nonn
AUTHOR
Antonio Roldán, Dec 28 2011
EXTENSIONS
Values matching definition restored by Franklin T. Adams-Watters, Jun 06 2016
STATUS
approved