login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A005008 a(n) = n! - n^2. 7
1, 0, -2, -3, 8, 95, 684, 4991, 40256, 362799, 3628700, 39916679, 479001456, 6227020631, 87178291004, 1307674367775, 20922789887744, 355687428095711, 6402373705727676, 121645100408831639, 2432902008176639600, 51090942171709439559, 1124000727777607679516 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,3
LINKS
FORMULA
E.g.f.: 1/(1 - x) - x*(1 + x)*exp(x). - Ilya Gutkovskiy, Jan 27 2017
MATHEMATICA
Table[n! - n^2, {n, 0, 30}] (* Vladimir Joseph Stephan Orlovsky, Jun 27 2011 *)
PROG
(Magma) [Factorial(n) - n^2: n in [0..25]]; // Vincenzo Librandi, Jun 28 2011
(PARI) a(n)=n!-n^2 \\ Charles R Greathouse IV, Jun 28 2011
CROSSREFS
Sequence in context: A358562 A368246 A243954 * A079938 A324006 A112237
KEYWORD
sign,easy
AUTHOR
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 18 20:26 EDT 2024. Contains 371781 sequences. (Running on oeis4.)