掷 n 面骰:和首次成为 n 的倍数的期望
What is the expected number of rolls until the sum is a multiple of for the first time?
题目详情
You roll a fair - sided die repeatedly and sum the outcomes. What is the expected number of rolls until the sum is a multiple of for the first time?
解析
令 为首次使得 的掷骰次数。
若当前 ,则存在唯一的点数能在下一次把余数补到 0,因此
且 ,从而
利用尾和公式: