(49g 50g) Number of Trailing Zeros in N!
|
06-03-2022, 02:05 PM
Post: #3
|
|||
|
|||
RE: (49g 50g) Number of Trailing Zeros in N!
Thanks for posting this, Thomas. Your program is certainly simpler, although it is limited to numbers < 10^12.
The reason for my rather brute-force approach is to allow number sizes limited only by the calculator's memory while avoiding the slowness of the HP50 IQUOT function. I am working on a revised version that should allow numbers with several thousand digits (that is the number n itself, not n!). As shown in this paper from the OEIS link above, this method can be extended to numbers with arbitrary base. Doing so is not entirely straightforward because the details seem to depend on whether the base b is a prime, semiprime, prime power, etc. As they say, further research is needed. |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
(49g 50g) Number of Trailing Zeros in N! - John Keith - 06-02-2022, 08:51 PM
RE: (49g 50g) Number of Trailing Zeros in N! - Thomas Klemm - 06-03-2022, 02:03 AM
RE: (49g 50g) Number of Trailing Zeros in N! - John Keith - 06-03-2022 02:05 PM
RE: (49g 50g) Number of Trailing Zeros in N! - Thomas Klemm - 06-03-2022, 03:19 PM
RE: (49g 50g) Number of Trailing Zeros in N! - John Keith - 06-03-2022, 08:52 PM
RE: (49g 50g) Number of Trailing Zeros in N! - John Keith - 06-04-2022, 06:53 PM
|
User(s) browsing this thread: 1 Guest(s)