A snake with a little more than 4 meters takes a walk for the forest in the following way. After to walk 1 meter in definitive direction it decides aleatoriamente if she capsizes for the left or if she capsizes for the right or if she continues in the same direction, independently of the previous decisions. However, if at some moment it finds its proper tail, it does not recognize it, bites and dies poisoned. She determines the probability of that the snake walks at least 10 meters before dying.
Consider encoding the above movements this way,
1. whenever the snake moves right, mark it as -1
2. whenever the snake moves straight, mark it as 0
3. whenever the snake moves left, mark it as 1
Thus the movements of snake can be encoded as a stream of -1's,0's and 1's.
This sequence terminates whenever we see 4 consecutive 1's or -1's.
The required probability then becomes,
P(length of sequence >=10)
= 1 - P(length of sequence<10)
I think this should be computable, albeit tedious (which is why i am avoiding doing it right now anyways).
Poker Online