History of Mathematics
in India IIT Gandhinagar, home

Project Brahmagupta · problem 22

A Discrete Bhatia-Davis Inequality

For integers n≥1n \ge 1 and 0≤m≤n20 \le m \le n^2, define

F(n,m)=max⁡(n∑i=1nai2−m2),F(n,m) = \max \left( n\sum_{i=1}^n a_i^2 - m^2 \right),

where the maximum is taken over all integer sequences

(a1,a2,…,an)(a_1,a_2,\dots,a_n)

satisfying

0≤ai≤nfor all i,0 \le a_i \le n \qquad \text{for all } i,

and

∑i=1nai=m.\sum_{i=1}^n a_i = m.

Now define

S(N)=∑n=1N∑m=0n2F(n,m).S(N) = \sum_{n=1}^N \sum_{m=0}^{n^2} F(n,m).

Find

S(107) mod 1 000 000 007.S(10^7)\bmod 1\,000\,000\,007.

Try it

Check an answer

Enter a number, or a decimal where the problem asks for one. Only a hash of the answer is kept on this page.

Problem 22 of Project Brahmagupta, published under the Creative Commons Attribution 4.0 licence. No solutions are published.