This discussion board is a place to discuss our Daily Challenges and the math and science
related to those challenges. Explanations are more than just a solution — they should
explain the steps and thinking strategies that you used to obtain the solution. Comments
should further the discussion of math and science.
When posting on Brilliant:
Use the emojis to react to an explanation, whether you're congratulating a job well done , or just really confused .
Ask specific questions about the challenge or the steps in somebody's explanation. Well-posed questions can add a lot to the discussion, but posting "I don't understand!" doesn't help anyone.
Try to contribute something new to the discussion, whether it is an extension, generalization or other idea related to the challenge.
Stay on topic — we're all here to learn more about math and science, not to hear about your favorite get-rich-quick scheme or current world events.
Markdown
Appears as
*italics* or _italics_
italics
**bold** or __bold__
bold
- bulleted - list
bulleted
list
1. numbered 2. list
numbered
list
Note: you must add a full line of space before and after lists for them to show up correctly
# I indented these lines
# 4 spaces, and now they show
# up as a code block.
print "hello world"
# I indented these lines
# 4 spaces, and now they show
# up as a code block.
print "hello world"
Math
Appears as
Remember to wrap math in \( ... \) or \[ ... \] to ensure proper formatting.
2 \times 3
2×3
2^{34}
234
a_{i-1}
ai−1
\frac{2}{3}
32
\sqrt{2}
2
\sum_{i=1}^3
∑i=13
\sin \theta
sinθ
\boxed{123}
123
Comments
This is a tricky one. I counted the number of allowable strings of length n starting at n=1 and obtained the sequence 1,0,1,0,1,1,1,2,3,4,6,10,15,...., which matches this OEIS sequence. So the desired probability of winning is
Now the sequence of numerators is Fibonacci-like in that the ratio of successive terms approaches the golden ratio ϕ. This allows us to estimate that 0.798<P<0.799.
Edit: As Milo Koumouris has pointed out, my initial calculation was incorrect; the estimate should actually be P≈0.7112.
While I've confirmed the match up to n=13 I haven't been able to prove it yet. It involves recurrence relations, but seems quite complicated. I'll keep working at it.
@Brian Charlesworth
–
Also, would there be a way to calculate the exact value of P? It's pretty easy to do for most recurrences, but do you think it can be done for this one?
@Miles Koumouris
–
Also, regarding your approximation, since (from observation) a(n)a(n+1)<ϕ∀n≥12, shouldn't P<∑k=1122ka(k)+213(1−2ϕ)a(13)=20481439+8192(1−45+1)15≈0.7122? I feel like I missed some information about the sequence when I made the assumption - would it be possible for you to show how you got your approximation?
Based on the assumption that the ratio between successive terms of a(n) is monotonically increasing and upper-bounded by ϕ for all n≥13, we can design an approximation technique for P:
and hence we can confirm P rounded to 7 decimal places as 0.7112119. Upon searching this value, I found this link to an almost identical problem, with an answer of 0.7112119…, found by evaluating the product
P=1−(n=1∏∞(1−(21)n))
So thanks to the much smarter people who actually did the work, came up with this, and proved it, I believe it wouldn't be too hard to use their solutions and verify that this is indeed the answer.
Great work! With several approaches to the problem yielding the same value I think that it's safe to conclude that the answer is verified. The formula you have for P is surprisingly elegant. :)
Thanks! Although I didn't really do any work - the others on stack exchange solved it, and you were the one that initially found the recurrence relation. I am surprised too by how simple the formula is... do you think P can be expressed in closed form? Something tells me it can't, but I'm not sure how one would go about proving it.
Since there is no way to lose, and it is possible to win given any previous sequence of tosses, the reasoning to solve this problem changes. The only way to 'not win' is to toss an endless sequence, since the game can only terminate in a win. There are clearly infinitely many of these endless games, but since the probability of one of these endless games is infinitesimally small ((21)N as N→∞), it would be sufficient to prove that the infinite number of these endless games is not an exponential divergence. I'm not really sure how to address this...
Easy Math Editor
This discussion board is a place to discuss our Daily Challenges and the math and science related to those challenges. Explanations are more than just a solution — they should explain the steps and thinking strategies that you used to obtain the solution. Comments should further the discussion of math and science.
When posting on Brilliant:
*italics*
or_italics_
**bold**
or__bold__
paragraph 1
paragraph 2
[example link](https://brilliant.org)
> This is a quote
\(
...\)
or\[
...\]
to ensure proper formatting.2 \times 3
2^{34}
a_{i-1}
\frac{2}{3}
\sqrt{2}
\sum_{i=1}^3
\sin \theta
\boxed{123}
Comments
This is a tricky one. I counted the number of allowable strings of length n starting at n=1 and obtained the sequence 1,0,1,0,1,1,1,2,3,4,6,10,15,...., which matches this OEIS sequence. So the desired probability of winning is
P=21+231+251+261+271+282+293+2104+2116+21210+......
Now the sequence of numerators is Fibonacci-like in that the ratio of successive terms approaches the golden ratio ϕ. This allows us to estimate that 0.798<P<0.799.
Edit: As Milo Koumouris has pointed out, my initial calculation was incorrect; the estimate should actually be P≈0.7112.
Log in to reply
Thanks Sir
Wow - I didn't expect this! Nice... Is there away to prove the link?
Log in to reply
While I've confirmed the match up to n=13 I haven't been able to prove it yet. It involves recurrence relations, but seems quite complicated. I'll keep working at it.
Log in to reply
P? It's pretty easy to do for most recurrences, but do you think it can be done for this one?
Also, would there be a way to calculate the exact value ofLog in to reply
a(n)a(n+1)<ϕ∀n≥12, shouldn't P<∑k=1122ka(k)+213(1−2ϕ)a(13)=20481439+8192(1−45+1)15≈0.7122? I feel like I missed some information about the sequence when I made the assumption - would it be possible for you to show how you got your approximation?
Also, regarding your approximation, since (from observation)Log in to reply
I believe that
P=1−(n=1∏∞(1−(21)n))=0.7112119049133975787211002780707692…
Based on the assumption that the ratio between successive terms of a(n) is monotonically increasing and upper-bounded by ϕ for all n≥13, we can design an approximation technique for P:
k=1∑M(2ka(k))+2M+1(1−(2a(M+1)a(M+2)))a(M+1)<P<k=1∑N(2ka(k))+2N+1(1−(2ϕ))a(N+1)
On the OEIS link, there are only 60 terms provided, so setting M=58 and N=59 yields
48757767567175550404478894083467710474555566700753916705<P<1152921504606846976715765590735+819971339679777159
which implies
0.7112119048…<P<0.7112119051…
and hence we can confirm P rounded to 7 decimal places as 0.7112119. Upon searching this value, I found this link to an almost identical problem, with an answer of 0.7112119…, found by evaluating the product
P=1−(n=1∏∞(1−(21)n))
So thanks to the much smarter people who actually did the work, came up with this, and proved it, I believe it wouldn't be too hard to use their solutions and verify that this is indeed the answer.
Log in to reply
Great work! With several approaches to the problem yielding the same value I think that it's safe to conclude that the answer is verified. The formula you have for P is surprisingly elegant. :)
Log in to reply
Thanks! Although I didn't really do any work - the others on stack exchange solved it, and you were the one that initially found the recurrence relation. I am surprised too by how simple the formula is... do you think P can be expressed in closed form? Something tells me it can't, but I'm not sure how one would go about proving it.
Log in to reply
Pentagonal Number Theorem.
I would doubt that there is a closed form. It appears to be related to theLog in to reply
Dunno if this is right but....
Define Pn as the probability of winning starting right after you flipped a total of n tails.
Pn=(21)n+1+(1−(21)n+1)Pn+1
⇔(2n−1)Pn=2nPn−1−1
Pretty obvious that P(∞)=0.
Aaaand I dunno if this is solvable x'D
0.5
Since there is no way to lose, and it is possible to win given any previous sequence of tosses, the reasoning to solve this problem changes. The only way to 'not win' is to toss an endless sequence, since the game can only terminate in a win. There are clearly infinitely many of these endless games, but since the probability of one of these endless games is infinitesimally small ((21)N as N→∞), it would be sufficient to prove that the infinite number of these endless games is not an exponential divergence. I'm not really sure how to address this...