Re: Fibonacci[1,000,000,000] contains 208,987,640 decimal digits
From: Fred the Wonder Worm (ftww_at_maths.usyd.edu.au)
Date: 08/10/04
- Next message: Benson Leung: "Minimum of a matrix."
- Previous message: Daniel Mark: "Compute the limit of x/exp(x) when x approaches positive infinite?"
- In reply to: Michael Taktikos: "Fibonacci[1,000,000,000] contains 208,987,640 decimal digits"
- Next in thread: Fred the Wonder Worm: "Re: Fibonacci[1,000,000,000] contains 208,987,640 decimal digits"
- Reply: Fred the Wonder Worm: "Re: Fibonacci[1,000,000,000] contains 208,987,640 decimal digits"
- Messages sorted by: [ date ] [ thread ]
Date: 10 Aug 2004 03:38:04 GMT
In article <2npfirF385mqU1@uni-berlin.de>,
Michael Taktikos <michael.taktikos@hanse.net> wrote:
>"Ed Pegg Jr" <edpegg@gmail.com> wrote in comp.soft-sys.math.mathematica:
>> For finding the number of digits in any sufficently large Fibonacci
>> number in base 10, let k = (ArcCsch[2])/Log[10]. The number of
>> digits in Fibonacci[n] is Round[n k].
>>
>> k ~ 0.20898764024997873376927208923755541682245923991821
As someone else already pointed out, this is out by one a significant
number of times. The version I would use (for n > 0) is:
Ceiling(n*Log[10](phi) - Log[10](Sqrt(5)))
where phi = (1 + Sqrt(5))/2. Log[10](phi) is the value of k above,
and Log[10](Sqrt(5)) is approximately 0.349485+; thus the
discrepancy.
>> Fibonacci[10^9] has 10^9 k ~ 208987640 digits.
>
> Thank you for confirming this result. It means, that the number
> mentioned in Sloane's sequence A068070 (number of digits of the
> 10^n_th Fibonacci number), like some other numbers in this sequence,
> are wrong.
> N. Sloane get now a comment to A068070 with the corrected sequence
> {0,2,21,209,2090,20899,208988,2089877,20898764,208987640,2089876402,
> 20898764025,208987640250,2089876402500,20898764024998,208987640249979,
> 2089876402499787,20898764024997873,208987640249978734,...}.
The first value is clearly not correct -- the formula does not work
for n = 0 as the contribution from 1/phi^n in the usual formula is
not negligible. Your values for n = 10 and n = 17 are also incorrect;
they should be 2089876403 and 20898764024997874 respectively. The
others are correct.
[ The current data in the online encyclopaedia as I write this is
wrong for n = 8, 9 and 16. ]
Cheers,
Geoff.
-----------------------------------------------------------------------------
Geoff Bailey (Fred the Wonder Worm) | Programmer by trade --
ftww@maths.usyd.edu.au | Gameplayer by vocation.
-----------------------------------------------------------------------------
- Next message: Benson Leung: "Minimum of a matrix."
- Previous message: Daniel Mark: "Compute the limit of x/exp(x) when x approaches positive infinite?"
- In reply to: Michael Taktikos: "Fibonacci[1,000,000,000] contains 208,987,640 decimal digits"
- Next in thread: Fred the Wonder Worm: "Re: Fibonacci[1,000,000,000] contains 208,987,640 decimal digits"
- Reply: Fred the Wonder Worm: "Re: Fibonacci[1,000,000,000] contains 208,987,640 decimal digits"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|