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?

Results 1 to 15 of 17

- Feb 2nd 2006, 11:03 PM #1

- Joined
- Oct 2005
- Posts
- 18

- Feb 2nd 2006, 11:27 PM #2

- Joined
- Oct 2005
- Posts
- 18

## another one

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.

- Feb 3rd 2006, 02:02 AM #3

- Joined
- Nov 2005
- From
- someplace
- Posts
- 14,972
- Thanks
- 5

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

- Feb 3rd 2006, 02:11 AM #4

- Joined
- Oct 2005
- Posts
- 18

- Feb 3rd 2006, 09:12 AM #5

- Joined
- Nov 2005
- From
- New York City
- Posts
- 10,616
- Thanks
- 10

Originally Posted by**yiyayiyayo**

Now observe the following:

**Those expressed as 2 consecutives:**

**Those expressed as 3 consecutives:**

.................................................. .....

**Those expressed as consecutives:**

.

Thus, a number has 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 given for 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.

- Feb 3rd 2006, 09:23 AM #6

- Joined
- Nov 2005
- From
- New York City
- Posts
- 10,616
- Thanks
- 10

Originally Posted by**yiyayiyayo**

Let me explain why the infinity part gives me confusion. Let

Where is 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?

- Feb 3rd 2006, 09:36 AM #7

- Joined
- Nov 2005
- From
- someplace
- Posts
- 14,972
- Thanks
- 5

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

- Feb 3rd 2006, 09:44 AM #8

- Joined
- Nov 2005
- From
- New York City
- Posts
- 10,616
- Thanks
- 10

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.

- Feb 3rd 2006, 10:58 AM #9

- Joined
- Nov 2005
- From
- someplace
- Posts
- 14,972
- Thanks
- 5

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

- Feb 3rd 2006, 12:37 PM #10

- Joined
- Nov 2005
- From
- someplace
- Posts
- 14,972
- Thanks
- 5

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 .

Let denote the difference between the number of heads and the number

of tails after tosses. 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 probability after 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 of with probability , and a difference

of with probability , and so the probability of the difference ever

returning to is:

.

So, supposing :

.

Now is equal to , but with and interchanged, and so:

.

That is

RonL

- Feb 4th 2006, 05:54 PM #11

- Joined
- Oct 2005
- Posts
- 18

## Thank you

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.

- Feb 4th 2006, 06:24 PM #12

- Joined
- Nov 2005
- From
- New York City
- Posts
- 10,616
- Thanks
- 10

- Feb 5th 2006, 09:48 AM #13

- Joined
- Nov 2005
- From
- New York City
- Posts
- 10,616
- Thanks
- 10

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.

- Feb 6th 2006, 02:47 PM #14

- Joined
- Nov 2005
- From
- New York City
- Posts
- 10,616
- Thanks
- 10

Let me show my proof to problem 2.

Notice that a number expressed, as consecutives (odd number), then we have,

,

Thus,

,

Now is even, thus,

where is 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 by then, 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 since is 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 form then 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 that cannot 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.

- Feb 6th 2006, 06:48 PM #15

- Joined
- Oct 2005
- Posts
- 18