704. Factors of Two in Binomial Coefficients

Define g(n,m) to be the largest integer k such that 2k divides (nm). For example, (125)=792=23⋅32⋅11, hence g(12,5)=3. Then define F(n)=max{g(n,m):0≤m≤n}. F(10)=3 and F(100)=6.

Let S(N) = ∑n=1NF(n). You are given that S(100)=389 and S(107)=203222840.

Find S(1016).

704. 二项式系数中的因子二

记 g(n,m) 为:满足 2k 整除 (nm) 的最大的整数 k。 例如,(125)=792=23⋅32⋅11,因此 g(12,5)=3。 随后我们定义 F(n)=max{g(n,m):0≤m≤n},可以验证 F(10)=3、F(100)=6。

记 S(N) = ∑n=1NF(n)。你已知 S(100)=389、S(107)=203222840。

求 S(1016)。


点 这个链接 回到源站。

点 这个链接 回到详细版题目目录。