Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.forth > #13488
| From | mhx@iae.nl (Marcel Hendrix) |
|---|---|
| Subject | Re: Reverse factorial |
| Newsgroups | comp.lang.forth |
| Message-ID | <57661300968435@frunobulax.edu> (permalink) |
| Date | 2012-07-03 22:37 +0200 |
| References | <7xhato3a0v.fsf@ruckus.brouhaha.com> |
| Organization | Wanadoo |
Paul Rubin <no.email@nospam.invalid> writes Re: Reverse factorial
> mhx@iae.nl (Marcel Hendrix) writes:
>> It is beyond my semantic capabability to understand what "Smallest
>> number with a factorial of at least 10^x digits" means exactly.
> n = minimum { k | length(decimal representation of k!) >= 10^x }
> For d>0, the length of the decimal representation of d is
> 1 + floor(log10 d).
Thanks!
FORTH> runs
Smallest number with a factorial of at least 10^00 digits is 0.0000000000000000000e+0000 \ 0.000 seconds elapsed.
Smallest number with a factorial of at least 10^01 digits is 1.3000000000000000000e+0001 \ 0.000 seconds elapsed.
Smallest number with a factorial of at least 10^02 digits is 7.0000000000000000000e+0001 \ 0.001 seconds elapsed.
Smallest number with a factorial of at least 10^03 digits is 4.5000000000000000000e+0002 \ 0.000 seconds elapsed.
Smallest number with a factorial of at least 10^04 digits is 3.2490000000000000000e+0003 \ 0.001 seconds elapsed.
Smallest number with a factorial of at least 10^05 digits is 2.5206000000000000000e+0004 \ 0.000 seconds elapsed.
Smallest number with a factorial of at least 10^06 digits is 2.0502200000000000000e+0005 \ 0.000 seconds elapsed.
Smallest number with a factorial of at least 10^07 digits is 1.7235080000000000000e+0006 \ 0.000 seconds elapsed.
Smallest number with a factorial of at least 10^08 digits is 1.4842907000000000000e+0007 \ 0.000 seconds elapsed.
Smallest number with a factorial of at least 10^09 digits is 1.3020280900000000000e+0008 \ 0.000 seconds elapsed.
Smallest number with a factorial of at least 10^10 digits is 1.1587875780000000000e+0009 \ 0.000 seconds elapsed.
Smallest number with a factorial of at least 10^11 digits is 1.0433891464000000000e+0010 \ 0.000 seconds elapsed.
Smallest number with a factorial of at least 10^12 digits is 9.4851898541000000000e+0010 \ 0.001 seconds elapsed.
Smallest number with a factorial of at least 10^13 digits is 8.6920049460000000000e+0011 \ 0.001 seconds elapsed.
Smallest number with a factorial of at least 10^14 digits is 8.0193462037860000000e+0012 \ 0.001 seconds elapsed.
Smallest number with a factorial of at least 10^15 digits is 7.4419210652836000000e+0013 \ 0.001 seconds elapsed.
Smallest number with a factorial of at least 10^16 digits is 6.9410085967969200000e+0014 \ 0.000 seconds elapsed.
Smallest number with a factorial of at least 10^17 digits is 6.5024648912168800000e+0015 \ 0.001 seconds elapsed.
Smallest number with a factorial of at least 10^18 digits is 6.1154108320430276000e+0016 \ 0.001 seconds elapsed.
Smallest number with a factorial of at least 10^19 digits is 5.7713453304452275000e+0017 \ 0.000 seconds elapsed.
Smallest number with a factorial of at least 10^20 digits is 5.4635317748670943960e+0018 \ 0.000 seconds elapsed. ok
-marcel
Back to comp.lang.forth | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Reverse factorial "Ed" <invalid@nospam.com> - 2012-06-29 11:51 +1000
Re: Reverse factorial mhx@iae.nl (Marcel Hendrix) - 2012-06-30 02:05 +0200
Re: Reverse factorial "Ed" <invalid@nospam.com> - 2012-06-30 12:26 +1000
Re: Reverse factorial "Ed" <invalid@nospam.com> - 2012-07-01 23:17 +1000
Re: Reverse factorial mhx@iae.nl (Marcel Hendrix) - 2012-07-01 16:51 +0200
Re: Reverse factorial "Ed" <invalid@nospam.com> - 2012-07-02 05:40 +1000
Re: Reverse factorial Paul Rubin <no.email@nospam.invalid> - 2012-07-02 22:08 -0700
Re: Reverse factorial "Ed" <invalid@nospam.com> - 2012-07-03 17:02 +1000
Re: Reverse factorial mhx@iae.nl (Marcel Hendrix) - 2012-07-03 21:14 +0200
Re: Reverse factorial Paul Rubin <no.email@nospam.invalid> - 2012-07-03 12:44 -0700
Re: Reverse factorial mhx@iae.nl (Marcel Hendrix) - 2012-07-03 22:37 +0200
Re: Reverse factorial "Ed" <invalid@nospam.com> - 2012-07-05 23:14 +1000
csiph-web