Maths Olympiad Prep

Track / Stage 3 / 182 of 260 #662 of 2444

Problem 662

AMC 10/12, early questions
Number theory Difficulty 3.8 Multiple choice CEMC Gauss (Grade 8) · Canada · 2018

The smallest positive integer nn for which n(n+1)(n+2)n(n+1)(n+2) is a multiple of 5 is n=3n=3. All positive integers, nn, for which n(n+1)(n+2)n(n+1)(n+2) is a multiple of 5 are listed in increasing order. What is the 2018th^{th} integer in the list?

Pick one

Next problem →

Official solution

In each block 12233344449999999991223334444\cdots999999999, there is 1 digit 1, 2 digits 2, 3 digits 3, and so on.

The total number of digits written in each block is 1+2+3+4+5+6+7+8+9=451+2+3+4+5+6+7+8+9=45.

We note that 1953÷451953\div45 gives a quotient of 43 and a remainder of 18 (that is, 1953=45×43+181953=45\times43+18).

Since each block contains 45 digits, then 43 blocks contain 43×45=193543\times 45=1935 digits.

Since 19531935=181953-1935=18, then the 18th^{th} digit written in the next block (the 44th^{th} block) will be the 1953rd^{rd} digit written.

Writing out the first 18 digits in a block, we get 122333444455555666, and so the 1953rd^{rd} digit written is a 6.

Source: CEMC, University of Waterloo, licensed CC-BY-NC-4.0. Statement reproduced verbatim; metadata (topic, difficulty, ordering) added by this project.