login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A067067
a(n) = product of nonzero digits of n! (A000142).
2
1, 1, 2, 6, 8, 2, 14, 20, 24, 2304, 2304, 11664, 1512, 2688, 112896, 508032, 18579456, 87091200, 11854080, 368640, 6967296, 22861440, 542126592, 1872809164800, 40633270272, 559872000, 26873856000, 8561413324800, 178362777600
OFFSET
0,3
LINKS
FORMULA
a(n) = A051801(n!).
EXAMPLE
a(10) = 2304 as 10! = 3628800 and 3*6*2*8*8 = 2304.
MATHEMATICA
f[n_] := Block[{d = Sort[ IntegerDigits[n! ]] }, While[ First[d] == 0, d = Drop[d, 1]]; Return[ Apply[ Times, d]]]; Table[ f[n], {n, 0, 30} ]
Table[Times@@DeleteCases[IntegerDigits[n!], 0], {n, 0, 30}] (* Harvey P. Dale, Jan 11 2016 *)
PROG
(PARI) a(n) = {vecprod(select(x->(x!=0), digits(n!)))} \\ Harry J. Smith, May 03 2010
CROSSREFS
Sequence in context: A086353 A019786 A278497 * A119279 A344171 A327617
KEYWORD
base,nonn
AUTHOR
Amarnath Murthy, Jan 03 2002
EXTENSIONS
More terms from Jason Earls, Harvey P. Dale and Robert G. Wilson v, Jan 04 2002
STATUS
approved