OFFSET
1,3
COMMENTS
(-1)^(n+1)* n-th numerator of coefficient in LambertW(x) power series, where LambertW(x) is the transcendental function satisfying LambertW(x)*exp( LambertW(x) )=x. - Benoit Cloitre, May 08 2002
LINKS
G. C. Greubel, Table of n, a(n) for n = 1..250
MATHEMATICA
Numerator[Table[n^(n - 1)/n!, {n, 1, 30}]] (* G. C. Greubel, Sep 09 2018 *)
CoefficientList[-LambertW[-x]/x + O[x]^21, x] // Numerator (* Jean-François Alcover, Jan 15 2019 *)
PROG
(PARI) for(n=1, 30, print1(numerator(n^(n-1)/n!), ", ")) \\ G. C. Greubel, Sep 09 2018
(Magma) [Numerator(n^(n-1)/Factorial(n)): n in [1..30]]; // G. C. Greubel, Sep 09 2018
(SageMath) [numerator(n^(n-1)/factorial(n)) for n in (1..30)] # G. C. Greubel, Feb 08 2019
(Python)
from sympy import factorint
from sympy.ntheory.factor_ import digits
def A036504(n):
m = n**(n-1)
for p, e in factorint(n).items():
m //= p**min(e*(n-1), (n-sum(digits(n, p)[1:]))//(p-1))
return m # Chai Wah Wu, May 03 2026
CROSSREFS
KEYWORD
nonn,frac
AUTHOR
STATUS
approved
