Can anyone explain the solution.. solution are posted on homepage, but it seems difficult to understand.
| # | User | Rating |
|---|---|---|
| 1 | Benq | 3792 |
| 2 | VivaciousAubergine | 3647 |
| 3 | Kevin114514 | 3603 |
| 4 | jiangly | 3583 |
| 5 | turmax | 3559 |
| 6 | tourist | 3541 |
| 7 | strapple | 3515 |
| 8 | ksun48 | 3461 |
| 9 | dXqwq | 3436 |
| 10 | Otomachi_Una | 3413 |
| # | User | Contrib. |
|---|---|---|
| 1 | Qingyu | 157 |
| 2 | adamant | 153 |
| 3 | Um_nik | 146 |
| 3 | Proof_by_QED | 146 |
| 5 | Dominater069 | 145 |
| 6 | errorgorn | 141 |
| 7 | cry | 139 |
| 8 | YuukiS | 135 |
| 9 | TheScrasse | 134 |
| 10 | chromate00 | 133 |
Can anyone explain the solution.. solution are posted on homepage, but it seems difficult to understand.
| Name |
|---|



Let
. Then the answer to the problem is
(except for the case b = 1 where the sum is infinite). So we want to compute Fa(x).
We see that
. Hence, Fa + 1(x) = xF'a(x).
We have
. Then
, and so on. It's easy to see that
, where Pa is a polynomial of degree a. Substituting this expression into recurrent equation for Fa we get
Pa + 1(x) = xP'a(x)(1 - x) + (a + 1)xPa(x).
So we can compute the polynomial Pa using this recurrent equation.