OFFSET
1,2
FORMULA
EXAMPLE
a(1) = 1;
a(2) = 2^2 + 2*2^1 = 8;
a(3) = 3^3 + 2*3^2 + 3*3^1 = 54;
a(4) = 4^4 + 2*4^3 + 3*4^2 + 4*4^1 = 448;
a(5) = 5^5 + 2*5^4 + 3*5^3 + 4*5^2 + 5*5^1 = 4875.
MAPLE
a:= n-> `if`(n=1, 1, (n^n-n)*(n/(n-1))^2):
seq(a(n), n=1..20); # Alois P. Heinz, Sep 02 2021
PROG
(Python)
def A347274(n): return 1 if n == 1 else n**2*(n**n-n)//(n - 1)**2 # Chai Wah Wu, Sep 12 2021
CROSSREFS
KEYWORD
nonn
AUTHOR
Ryan Stubbs, Aug 25 2021
STATUS
approved