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=233211, hence g(12,5)=3. Then define F(n)=max{g(n,m):0mn}. 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=233211,因此 g(12,5)=3 随后我们定义 F(n)=max{g(n,m):0mn},可以验证 F(10)=3F(100)=6

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

S(1016)


这个链接 回到源站。

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