Given a coin with probability p of landing on heads after a flip, what is the probability that the number of heads will ever equal the number of tails assuming an infinite number of flips?
Printable View
Given a coin with probability p of landing on heads after a flip, what is the probability that the number of heads will ever equal the number of tails assuming an infinite number of flips?
Some integers can be expressed as the sum of two or more consecutive positive integers. For example, 17 = 8+9, 24 = 7+8+9. Other integers, such as 8, cannot be expressed that way. Which integers can be expressed as a sum of two or more consecutive positive integers, and which cannot? See if you can prove your answer.
Do you mean given a sequence a flips which may continue as long as weQuote:
Originally Posted by yiyayiyayo
like, what is the probability that at some time in this sequece of flips we
have the number of heads so far equals the number of tails so far?
RonL
The answer is 2*min(p,1-p).
Could you tell me how to do it?
Thank you.
I like the problem.Quote:
Originally Posted by yiyayiyayo
Now observe the following:
Those expressed as 2 consecutives:
Those expressed as 3 consecutives:
.................................................. .....
Those expressed asconsecutives:
.
Thus, a numberhas the form of
if and only if it can be expressed as consectutives. (Although the converse part was omitted in the proof, I assume you see it).
Thus the answer to your question is the above statement. To put it more elegantly:
If the Diophantine equation
has a solution for a givenfor certain
if and only if
can be expressed as consecutives.
Q.E.D.
I am trying to see if I can simplify what I just said. I think it might be brought to the Pellian equation, but that needs some work. If I find a way I will respond back.
The infinite part gives me confusion. See, that if the number of flips is an odd number there is no way how they can be equal! However, the problem changes when you are speaking of an even number because that is possible.Quote:
Originally Posted by yiyayiyayo
Let me explain why the infinity part gives me confusion. Let
Whereis the probability of getting for same head and tails for even amount of throws which as said above exists. Now when you say infinity I understand that as,
, I believe it diverges by osicallation, does it not?
Right, I can solve this, but the solution is does not qualify as high schoolQuote:
Originally Posted by yiyayiyayo
maths. Are you sure that you don't already have a short cut for this problem
in your notes or textbook?
Also its a lot of typing, I will start typing the solution in about 3 hours.
RonL
I am guessing that this has something to do with the Strong Law of Large numbers. Because if it was a fair coin,then, as you increase the number of throws by the Strong Law of Large Numbers is
(this is the answer as you claim in your previous post), which is true.
No, these problems are all essentially the same, the trick is to find aQuote:
Originally Posted by ThePerfectHacker
recurrence relation satisfied by some probability related to the task in hand,
solve the recurrence relation then use that to solve the problem.
It's rather more LaTeX than I fancy typing at the moment (I'm suffering from
too much keyboard hammering - its report writing time at work).
RonL
We have a coin with probability of coming up heads when tossedQuote:
Originally Posted by yiyayiyayo
.
We want to know the probability in a long string of tosses of the
number of heads equalling the number of tails. In particular we want to
know the limit of this probability as the length of the sequence of
tosses tends to.
Letdenote the difference between the number of heads and the number
of tails aftertosses. So we are asking for the probability that
,
for at least one.
Now suppose that at some stage in this sequence the difference between
the number of heads and the number of tails is. Also let
be the
probability that starting from a point where the difference is, that
at some subsequent point the difference is. Then clearly:
,
since with probabilityafter the next toss the difference will be
, and with probability
it will be
.
Now this difference equation is the analog of a second order linear
ordinary differential equation with constant coefficients, and we solve
it in a similar way. I will explain it another time if you want to see
it, but the solution is:
, if
,
, if
.
Now this does not immediately give our answer as by convention,
as we in fact count the current difference in this process. But after
one toss we have a difference ofwith probability
, and a difference
ofwith probability
, and so the probability of the difference ever
returning tois:
.
So, supposing:
.
Nowis equal to
, but with
and
interchanged, and so:
.
That is
RonL
I saw the first problem in a magazine not in my textbook,so you can work it out in any ways.And thank you for your later typing.Quote:
Originally Posted by CaptainBlack
The second one is from Cambridge College Math Institute and the answer to this problem will not be given untill several months later. Anyone who works it out can send email to puzzlemaster@cambridgecollege.edu with your solution.
Thank you , thank you for your thinking and typing,
and words fail me to say anything others.
:) ;) ;) ;) ;)
The problems were very nice problems.
I was further thinking about the second problem you gave. I believe I have a simplified version other than I posted previously. I think (not completely proven but close to it) that all number which CANNOT be expressed as the sum of consecutives is of the form.
I will not post my solution now, but later on in a few hours, I do not have enough time now.
Let me show my proof to problem 2.
Notice that a number expressed, asconsecutives (odd number), then we have,
,
Thus,
,
Nowis even, thus,
![]()
whereis an integer thus,
.
Thus, if a number can be expressed as a sum of(odd) consecutives, then it is divisible by
.
Now we prove, the converse (not exactly a converse you will see). That if a number is divisible bythen, we can express it as a sum of consecutives (I did not say
consecutives rather I said it can be expressed as consecutives!). If
then there exists
such as
. Thus, instead of
write
where
(as before), thus we can find such an
. The problem is that
can be a negative number. Thus, the number can be expressed as:
.
The following is the foundation of the proof; observe that if a number is expressed as a sum of consecutives starting from a negative number then it still can be expressed as a sum of consecutives! Because they cancel each other out. Observe,
(-4)+(-3)+(-2)+(-1)+0+1+2+3+4+5+6+7
Now follow with me. A number is expressed as a sum of consecutives from a negative number. Then they cancel each other out, and you are left with,
5+6+7,
still a sum of consecutives.
The problem is of course if they cancel each other out in such a way then you a left with a single number. For example,
(-1)+0+1+2, becomes,
2.
But 2 is not expressing 2 as a sum of consecutives by just 2 (that is trivial).
But to show this does not happen over here is because sinceis an odd number, and zero is part of this expansion, thus there are a total of even numbers. Thus, either the number of negatives is more than positives (which is not possible). They are equal (which is not possible). Thus, the number of positives must overtake the number of negatives by and even amount! Thus at least two which is considered a sum of consecutives.
Now we have that ANY number divisible by any odd number CAN be expressed as a sum of consecutives. Thus, if a number IS NOT expressable as a sum of consecutives it must have the form.
Finally, we prove the converse, that if a number has the formthen it cannot be expressed as a sum of consecutives, then we have that,
Thus,
Thus,
Thus,
.
Since of equality and the fact we are using integers we have thatcannot have odd factors thus,
,
Thus,
But the right factor of the LHS is odd,
Thus an impossibility.
Thus, all and only thus of the form. Cannot be expressed as a sum of consecutives.
Q.E.D.
I hope I did not make a mistake in proof. I think this is a nice problem and I had fun solving it.
You're very kind,and I really hope too much typing didn't trouble you. Though I want to say something,my poor English frustrated me, sorry.
In one word, your proof is wonderfull.Thank you.