OFFSET
0,5
FORMULA
a(n) = (n/2)^(n/2)(1+(-1)^n)/2+((n-1)/2)^((n-1)/2)(1-(-1)^n)/2.
a(2n) = a(2n+1) = n^n = A000312(n).
PROG
(Python)
def A110139(n): return (m:=n>>1)**m # Chai Wah Wu, Jan 18 2023
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Paul Barry, Jul 13 2005
STATUS
approved