OFFSET
1,2
EXAMPLE
a(3) = (3^3 + 3^2)/2 = (27+9)/2 = 18.
MATHEMATICA
a[n_]:=(n^n + n^2)/2; Array[a, 20] (* Stefano Spezia, Aug 19 2024 *)
PROG
(Python) print([int((n**n+n**2)/2) for n in range(1, 20)])
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Alex Ratushnyak, Jul 24 2012
STATUS
approved