OFFSET
0,2
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..350
FORMULA
a(n) = n^(n+2) - (n+2)^n.
MATHEMATICA
a[n_]:=n^(n+2)-(n+2)^n; lst={}; Do[AppendTo[lst, a[n]], {n, 0, 4!}]; lst (* Vladimir Joseph Stephan Orlovsky, Dec 20 2008 *)
PROG
(Magma) [n^(n+2) -(n+2)^n: n in [0..40]]; // G. C. Greubel, Jul 14 2021
(Sage) [n^(n+2) -(n+2)^n for n in (0..40)] # G. C. Greubel, Jul 14 2021
CROSSREFS
KEYWORD
sign
AUTHOR
STATUS
approved