Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).
%I #16 Sep 08 2022 08:44:56
%S -1,-2,0,118,2800,61318,1417472,35570638,973741824,29023111918,
%T 938082635776,32730551749894,1227224552173568,49239697945731382,
%U 2105895743771443200,95663702284183543582,4600926951773050961920,233592048827366522661214
%N a(n) = n^(n+2) - (n+2)^n.
%H G. C. Greubel, <a href="/A046065/b046065.txt">Table of n, a(n) for n = 0..350</a>
%F a(n) = n^(n+2) - (n+2)^n.
%t 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 *)
%o (Magma) [n^(n+2) -(n+2)^n: n in [0..40]]; // _G. C. Greubel_, Jul 14 2021
%o (Sage) [n^(n+2) -(n+2)^n for n in (0..40)] # _G. C. Greubel_, Jul 14 2021
%Y Cf. A007925 (n^(n+1) - (n+1)^n).
%K sign
%O 0,2
%A _N. J. A. Sloane_