Expectation of Gecko Jumps
Source:
September 8, 2024
expected value2024
Problem Statement
Let be the answer to problem 9.In a rainforest, there is a row of nine rocks labeled from to . A gecko is standing on rock . The gecko jumps according to following rules:[*] if it is on rock , then it will jump with equal probability to any of the other rocks.
[*] if it is on rock and is prime, then it will jump to rock .
[*] if it is on rock , then it will jump with equal probability to rock or rock .
[*] if it is on rock and is composite with , then it will jump with equal probability to rock or , where is the greatest composite number less than , and is the smallest composite number greater than .
[*] if it is on rock , then it stops jumping.The expected number of jumps the gecko will take to reach rock is , where are relatively prime positive integers. Compute .