easier way |
送交者: 車五進二 2019月11月25日14:15:04 於 [靈機一動] 發送悄悄話 |
回 答: n=182 由 zhf 於 2019-11-25 12:07:40 |
Let P(n) be the probability that after n moves, the bug went back to A. Then P(n) = (1 - P(n-1))/3, with P(1) = 0. You can use the recursive formula to find P(7). Alternatively, solve the recursion to obtain P(n) = (1-(-3)^(1-n))/4 |
|
|
|
|
實用資訊 | |