OFFSET
1,4
COMMENTS
a(n) is the value of x that solves the equation x^x = n, truncated to an integer.
FORMULA
a(n) = floor(g^-1(n)) where g(x) = x^x.
a(n) ~ log n/log log n. - Charles R Greathouse IV, Nov 29 2024
EXAMPLE
a(32)=3 because the solution to the equation x^x = 32 is x = 3.080448349..., and floor(3.080448349...) = 3.
MATHEMATICA
f[n_] := Floor[ N[ Log[n]/ProductLog[Log[ n]]]]; Join[{1}, Table[ f[n], {n, 2, 105}]] (* Robert G. Wilson v, Oct 21 2005 *)
PROG
(PARI) a(n)=exp(lambertw(log(x)))\1 \\ Charles R Greathouse IV, Nov 29 2024
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Christopher M. Tomaszewski (cmt1288(AT)comcast.net), Sep 16 2003
EXTENSIONS
Edited by Jon E. Schoenfield, Sep 09 2017
STATUS
approved
