Maths Olympiad Prep

Library / /4 of 9

Algebra Difficulty 5.5 AIME, harder Prove it Italy

Problem:

If xx is a positive real number, let [x][x] denote the integer part of xx, that is the greatest integer nxn \leq x. Compute the sum n=11000000[n]=[1]+[2]++[999999]+[1000000]\sum_{n=1}^{1000000} [\sqrt{n}] = [\sqrt{1}] + [\sqrt{2}] + \ldots + [\sqrt{999999}] + [\sqrt{1000000}].

[The student may use, if they wish, the following formula: i=1ki2=k(k+1)(2k+1)6\sum_{i=1}^k i^2 = \frac{k(k+1)(2k+1)}{6}, whose proof is not required.]

Solution

Solution:

We have [n]=k[\sqrt{n}] = k if and only if k2n<(k+1)2=k2+2k+1k^2 \leq n < (k+1)^2 = k^2 + 2k + 1, that is for n=k2+jn = k^2 + j with 0j2k0 \leq j \leq 2k, that is for 2k+12k + 1 values of jj.

Therefore,
n=1K21[n]=k=1K1k(2k+1)==2k=1K1k2+k=1K1k=(K1)K(2K1)3+K(K1)2=(K1)K(4K+1)6 \begin{gathered} \sum_{n=1}^{K^2-1} [\sqrt{n}] = \sum_{k=1}^{K-1} k(2k+1) = \\ = 2 \sum_{k=1}^{K-1} k^2 + \sum_{k=1}^{K-1} k = \frac{(K-1)K(2K-1)}{3} + \frac{K(K-1)}{2} = \frac{(K-1)K(4K+1)}{6} \end{gathered}

The required sum is obtained from expression ()(*) by setting K=1000K = 1000 and adding 1000=10000001000 = \sqrt{1000000}, which had not yet been counted: thus we obtain 500(3334001+2)500 \cdot (333 \cdot 4001 + 2).

Want a route through all this instead of an archive? The track puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.

Source: MathNet, licensed CC-BY-4.0. Statement translated into English from it; metadata (topic, difficulty) added by this project.