December 3rd, 2014, 1:04 pm
QuoteOriginally posted by: outrun1 - ( (8+2)th Fibonacci number / 2^8), which is 201/256and for generic strings of length [$]n[$]$$ 1 - \frac{(1+\sqrt{5})^{n+2} - (1-\sqrt{5})^{n+2}}{ 2^n \sqrt{5}} $$Nice! Your first line is correct (201/256), but I think there's a typo in your general formula:$$ p(n) \equiv 1 - \frac{(1+\sqrt{5})^{n+2} - (1-\sqrt{5})^{n+2}}{ 2^{2n + 2} \sqrt{5}} $$i.e. [$]2^{2n+2}[$] instead of [$]2^n[$] in the denominator.You then get p(1) = 0, p(2) = 1/4 and p(8) = 201/256.
Last edited by
atorch on December 2nd, 2014, 11:00 pm, edited 1 time in total.