login
a(n) = n^n! - n!^n.
0

%I #12 Jan 04 2024 21:51:30

%S -1,0,0,513,281474976378880

%N a(n) = n^n! - n!^n.

%C For n=5 term is of 84 digits: 7.52316... * 10^83.

%e for n=3, a(3) = 3^3! - 3!^3 = 513.

%t Table[n^n! - n!^n, {n, 0, 4}] (* _T. D. Noe_, Jun 04 2012 *)

%Y Cf. A036740, A053986.

%K sign

%O 0,4

%A _Pratik Jain_, Jun 04 2012