Krypton
- 13
- 0
How to find the mth digit of 2^n
The discussion revolves around methods for finding the mth digit of the number 2 raised to the power of n (2^n). It explores various computational approaches, efficiency concerns, and the feasibility of deriving a specific equation for this task.
Participants express differing views on the feasibility and practicality of finding an equation for the mth digit of 2^n. While some believe it is possible, others argue that the effort may not be worthwhile. The discussion remains unresolved regarding the best approach to take.
There are unresolved complexities regarding the efficiency of various algorithms and the memory requirements for large values of m. The discussion also highlights the dependence on definitions and assumptions about computational methods.
Krypton said:What do u ment by not at all ? Is it not at all possible? Or not atall imposible?
Ben Niehoff said:I found an algorithm to find the mth digit of 2^n in [itex]\mathcal O(mn^2)[/itex] time (possibly [itex]\mathcal O(mn \log n)[/itex], but I haven't proven it mathematically) using only integer additions (modulo 10). I don't know how this compares to CRGreathouse's suggestions above.