Documentation

LeanPool.OddPrimeValuationDistribution.GeneratingFunction

Bivariate generating function for odd-prime valuation distributions #

For p = 2 * half + 1, the coefficient of T ^ k * X ^ r counts 0 ≤ n < p ^ k with ν_p (centralBinom n) = r. The theorem below is the denominator-cleared, subtraction-free form of

(1 - X * T) / (1 - (half + 1) * (1 + X) * T + p * X * T ^ 2).

Headline rational generating-function identity for every odd prime. The outer PowerSeries.X records block length and the inner Polynomial.X records exact valuation.