lpetrich
Science Advisor
- 998
- 180
I will try Problem 4
I succeeded in solving it with brute force with Mathematica, but I will do an alternative that does not require bignums. That alternative was inspired by the Fibonacci series, and how member n of it can be expressed as a1*b1n + a2*b2n. So I seek a recurrence that has an exponential solution with a factor of ##\sqrt{3}+1## in it. That quantity solves equation ##x^2 - 2x - 2##, and it gives us the recurrence ##x(n) = 2x(n-1) + 2x(n-2)##. For x(0) = 2 and x(1) = 2, ##x(n) = (\sqrt{3}+1)^n + (-\sqrt{3}+1)^n##. However, that recurrence guarantees that x(n) will be an integer for all nonnegative integer n.
So, ##(\sqrt{3}+1)^{5000} = x(5000) - (-\sqrt{3}+1)^{5000}##. That final term is approximately ##5.08 \cdot 10^{-678}##, and that makes the first 677 digits after the decimal point all 9's. Thus, the 100th digit after the decimal point is 9.
So, ##(\sqrt{3}+1)^{5000} = x(5000) - (-\sqrt{3}+1)^{5000}##. That final term is approximately ##5.08 \cdot 10^{-678}##, and that makes the first 677 digits after the decimal point all 9's. Thus, the 100th digit after the decimal point is 9.
