OFFSET
2,1
COMMENTS
LINKS
Michael De Vlieger, Table of n, a(n) for n = 2..10000
FORMULA
EXAMPLE
a(2) = 2 since lpf(2) = 2, and 2^1 = 2 is the largest power of 2 that does not exceed 2.
a(6) = 4 since lpf(6) = 2, and 2^2 = 4 is the largest power of 2 that does not exceed 6.
a(15) = 9 since lpf(15) = 3, and 3^2 = 9 is the largest power of 3 that does not exceed 15, etc.
MATHEMATICA
Table[#^Floor@ Log[#, n] &[FactorInteger[n][[1, 1]] ], {n, 2, 120}]
PROG
(PARI) a(n) = my(p=vecmin(factor(n)[, 1])); p^logint(n, p); \\ Michel Marcus, Jun 18 2024
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Michael De Vlieger, Jun 18 2024
STATUS
approved