A005096 a(n) = n! - n.
1, 0, 0, 3, 20, 115, 714, 5033, 40312, 362871, 3628790, 39916789, 479001588, 6227020787, 87178291186, 1307674367985, 20922789887984, 355687428095983, 6402373705727982, 121645100408831981, 2432902008176639980, 51090942171709439979, 1124000727777607679978
Offset: 0
Keywords
Links
- Vincenzo Librandi, Table of n, a(n) for n = 0..300
- Advertising Standards Authority, McDonald's Restaurants Ltd (archived May 10 2004).
- Index entries for sequences related to factorial numbers
Programs
-
Magma
[Factorial(n) - n: n in [0..25]]; // Vincenzo Librandi, Jul 20 2011
-
Maple
A005096:=n->n!-n: seq(A005096(n), n=0..25); # Wesley Ivan Hurt, Oct 28 2014
-
Mathematica
lst={};Do[AppendTo[lst, n!-n], {n, 3*4!}];lst (* Vladimir Joseph Stephan Orlovsky, Nov 20 2008 *) Table[n! - n, {n, 0, 25}] (* Wesley Ivan Hurt, Oct 28 2014 *)
-
PARI
a(n)=n!-n \\ Charles R Greathouse IV, Oct 28 2014
Formula
E.g.f.: 1/(1 - x) - x*exp(x). - Ilya Gutkovskiy, Jan 27 2017
Comments