cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A110903 Difference between the factorial of n and the double factorial of n.

Original entry on oeis.org

0, 0, 0, 3, 16, 105, 672, 4935, 39936, 361935, 3624960, 39906405, 478955520, 6226885665, 87177646080, 1307672340975, 20922779566080, 355687393636575, 6402373519933440, 121645099754102925, 2432902004460748800, 51090942157960129425, 1124000727695858073600
Offset: 0

Views

Author

Paolo P. Lava, Sep 21 2005

Keywords

Examples

			a(7) = 7*6*5*4*3*2*1 - 7*5*3*1 = 4935.
		

Crossrefs

Cf. A000142 (factorials), A006882 (double factorials).

Programs

  • Mathematica
    Table[(n!-n!!), {n,0, 15}] (* Zerinvary Lajos, Mar 21 2007 *)
  • PARI
    a(n)={n! - if(n%2, n!/((n\2)!*2^(n\2)), (n/2)!*2^(n/2))} \\ Andrew Howroyd, Jan 02 2020

Formula

a(n) = n! - n!!.
a(n) = A000142(n) - A006882(n). - Andrew Howroyd, Jan 02 2020

Extensions

Terms a(15) and beyond from Andrew Howroyd, Jan 02 2020