Skipping Squares
For some fixed , we begin a sum at and repeatedly apply a process: With probability , we add to , otherwise we add to .
The process ends when either is a perfect square or exceeds , whichever occurs first. For example, if goes through , the process ends at , and two squares and were skipped over.
Let be the expected number of perfect squares skipped over when the process finishes.
It can be shown that the power series for is for a suitable (unique) choice of coefficients . Some of the first few coefficients are ,
, , .
Let . You are given that and .
Find , and give your answer modulo .
平方跳跃
对于给定的,我们对变量从开始进行如下操作:以概率我们给加,否则我们给加。
我们不断重复上述操作,直到是一个完全平方数或者超过了。例如,如果的取值依次为,那么我们在时停止操作,此时有两个完全平方数和被跳过了。
记为在操作结束前,被跳过的完全平方数的期望数目。
可以证明,可以唯一地表示成幂级数展开的形式,其中系数的前几项分别是,,,。
记。已知,。
求,并将你的答案对取余。
Gitalking ...