OFFSET
0,4
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
KEYWORD
nonn
AUTHOR
Roger L. Bagula, Apr 14 2006
EXTENSIONS
Edited by the Assoc. Eds. of the OEIS, Jun 27 2010
STATUS
approved