login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo

Please make a donation to keep the OEIS running. We are now in our 56th year. In the past year we added 10000 new sequences and reached almost 9000 citations (which often say "discovered thanks to the OEIS").
Other ways to donate

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A117736 factorial(n) - A049614(n). 0
0, 0, 1, 5, 20, 116, 696, 5016, 40128, 361152, 3611520, 39899520, 478794240, 6226813440, 87175388160, 1307630822400, 20922093158400, 355686731366400, 6402361164595200, 121645087867699200, 2432901757353984000 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,4

LINKS

Table of n, a(n) for n=0..20.

FORMULA

a(n) =n!- A049614(n) = A000142(n)-A049614(n).

MATHEMATICA

f[n_] := If[PrimeQ[n] == True, 1, n] cf[0] = 1; cf[n_Integer?Positive] := cf[n] = f[n]*cf[n - 1] g[n_] := If[PrimeQ[n] == True, n, 1] p[0] = 1; p[n_Integer?Positive] := p[n] = g[n]*p[n - 1] Table[n! - cf[n], {n, 0, 20}]

CROSSREFS

Cf. A034386, A117683.

Sequence in context: A020039 A319489 A207972 * A258665 A028944 A332710

Adjacent sequences:  A117733 A117734 A117735 * A117737 A117738 A117739

KEYWORD

nonn

AUTHOR

Roger L. Bagula, Apr 14 2006

EXTENSIONS

Edited by the Assoc. Eds. of the OEIS, Jun 27 2010

STATUS

approved

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified November 29 08:38 EST 2020. Contains 338762 sequences. (Running on oeis4.)