Maths Olympiad Prep

Library / /133 of 520

Number theory Difficulty 4.9 AIME Find the answer

9. The sequence 1,1,2,1,1,3,1,1,1,4,1,1,1,11,1,2,1,1,3,1,1,1,4,1,1,1,1, 5,,1,1,,1n1,n,5, \cdots, \underbrace{1,1, \cdots, 1}_{n-1 \uparrow}, n, \cdots has the sum of its first 2007 terms as

A number or a short expression. Spacing and $ signs are ignored.

Solution

9.3898 .

In the sequence, from number 1 to nn there are n+n(n1)2n+\frac{n(n-1)}{2} terms, thus, from number 1 to 62 there are 62+62×(621)262+\frac{62 \times(62-1)}{2} =1953=1953 terms, followed by 54 ones.
Therefore, the sum of the first 2007 terms is
(1+2++62)+(1+2++61)+54=3898 \begin{array}{l} (1+2+\cdots+62)+(1+2+\cdots+61)+54 \\ =3898 \end{array}

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: NuminaMath-1.5, licensed Apache-2.0. Statement and solution reproduced as published; topic and difficulty added by this site.