Re: Interesting question
- From: matt271829-news@xxxxxxxxxxx
- Date: Sun, 30 Dec 2007 04:31:24 -0800 (PST)
On Dec 24, 12:19 pm, John <iamach...@xxxxxxxxx> wrote:
Question Write a program that can compute the last non-zero digit of
any factorial for ( 0 <= N <= 10000). For example, if your program is
asked to compute the last nonzero digit of 5!, your program should
produce 2.
Now give a generalized method to find the last X non-zero digits of N
factorial
The same question was asked at http://groups.google.com/group/sci.math/browse_frm/thread/5ac3721631060330,
but for much larger numbers where it is not feasible to iterate from 1
to N.
.
- References:
- Interesting question
- From: John
- Interesting question
- Prev by Date: Re: Homogenous Matrix Projection
- Next by Date: Vector/matrix algebra
- Previous by thread: Re: Interesting question
- Next by thread: Merging problem
- Index(es):