OFFSET
0,1
COMMENTS
The sum of "n OP n" for hyper-operators 0 to 3, where 0 = succession, 1 = addition, 2 = multiplication, 3 = exponentiation.
FORMULA
a(n) = n^n + (n+1)^2.
E.g.f.: (1+3*x+x^2)*exp(x)+1/(1+LambertW(-x)). - Alois P. Heinz, Aug 26 2024
EXAMPLE
a(0) = (0^0)+(0*0)+(0+0)+1 = 1+0+0+1 = 2.
a(3) = (3^3)+(3*3)+(3+3)+1 = 27+9+6+1 = 43.
MATHEMATICA
Join[{2}, Table[n^n+(n+1)^2, {n, 19}]] (* James C. McMahon, Sep 13 2024 *)
PROG
(Python)
def A375730(n): return n*(n*(n**(n-2)+1)+2)+1 if n>1 else 3*n+2 # Chai Wah Wu, Sep 02 2024
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Anthony Veglia, Aug 25 2024
EXTENSIONS
a(19) corrected by James C. McMahon, Sep 13 2024
STATUS
approved