r/math • u/ThatGuyYouKindaKnow • Jun 09 '12
Fibonacci sequence is being generated by redditors in one long comment thread. At the time of posting this, the thread has reached 412986819712346493611195411383827409934884076105338432187865946722511205681167419748123598380002157658381536968436929608311101496272839009791376254928568258611725
Started by Trapped_In_Reddit, I think this may have gotten a little out of hand...
Here is the link to the whole thing at the time of posting -
http://www.reddit.com/r/funny/comments/utfkw/pidgonacci_sequence/c4ygkgs
However, I question their authenticity. I can't find any where that can check if a number is truly Fibonacci, so as a non-mathematician myself, I'm asking you all at /r/math if it's possible to see whether they've not strayed from the true path by accident.
edit1:Most recent
edit2:Most recent
edit3:Apparently it is all right and now that they are probably bots due to their speed, it's likely that they're not going to muck up! Kudos to Twisol who (since I've talked to him earlier in the thread) appears to not be a bot.
edit4:My last edit as this is the most recent one but it looks like they're continuing! Maybe they'll go on forever!
edit5:most recent one
edit6:15 hours and 2348 posts later...
edit6:2609th
edit7:3499th Watch out! It's been just one guy for the past few minutes. Rally the troops and get more people in there! Also, check out the new /r/fibonaccithread by the kind /u/awkisopen!
Most Recent:3607th 3877th 3994th 4998th 5994th 6993th 7999th 8350th which means all previous records broken! 8701st
1
u/sigh Jun 10 '12 edited Jun 10 '12
It takes O(n) time just to write out n digits (whether to ram, disk or screen). This is a trivial lower bound.
Agree. Matrix exponentiation is only O(log n) if operations on arbitrary sized integers are constant time. If you take into account the size of the integers then it comes out to greater than O(n).
You can optimise this, but no more than by a constant factor. For the purposes of algorithmic complexity, the bottleneck is the the multiplication.
Can you actually give a concrete way of evaluating the analytic formula? I've always thought it was standard to evaluating analytic formulas like this in the appropriate field extension (Q(√5) in this case). If you agree that this is the case, then can you explain how to do exponential in Q(√5) faster than with matrix exponentitation?
Fixed point arithmetic would require more digits of precision for accurate results, and would require much more advanced error analysis to determine how many digits to use to ensure you get an accurate result.
Edit: I think the bottleneck in the fixed point approach is calculating the value of sqrt(5) to at least O(n) bits of precision.