OFFSET
0,1
COMMENTS
0^0 is interpreted as 1.
FORMULA
E.g.f.: x/W(-x) - (1+x)/(1+W(-x)) - x/(1+W(-x))^2 + x/(1+W(-x))^3, where W is the Lambert W function. - Robert Israel, Mar 29 2017
EXAMPLE
a(3) = 2^4 - 3^3 = 16-27 = -11.
MAPLE
MATHEMATICA
Join[{-2}, Table[(n-1)^(n+1)-n^n, {n, 20}]] (* Harvey P. Dale, May 21 2023 *)
PROG
(Python)
for n in range(33):
print (n-1)**(n+1) - n**n,
CROSSREFS
KEYWORD
sign
AUTHOR
Alex Ratushnyak, Aug 07 2012
STATUS
approved