OFFSET
1,2
COMMENTS
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
Paul Erdős, Miscellaneous problems in number theory, Proceedings of the Eleventh Manitoba Conference on Numerical Mathematics and Computing (Winnipeg, Man., 1981), Congr. Numer., Vol. 34 (1982), pp. 25-45.
FORMULA
a(n) <= A006530(n).
a(p^e) = p for prime p and e>=1.
EXAMPLE
a(4) = 2 since 1 <= sqrt(4) < 2^2.
a(6) = 3 since 2 <= sqrt(6) < 2*3.
a(30) = 3 since 2 <= sqrt(30) < 2*3*5.
MATHEMATICA
a[1] = 1; a[n_] := Module[{fct = FactorInteger[n], prods, ind}, prods = Rest @ FoldList[Times, 1, Power @@@ fct]; ind = FirstPosition[prods^2, _?(# > n &)][[1]]; fct[[ind, 1]]]; Array[a, 100]
CROSSREFS
KEYWORD
nonn
AUTHOR
Amiram Eldar, Jul 07 2021
STATUS
approved