MathsReadCompetitive mathematics
Pattern recognition · integer answermedium10 min

The 240th digit

Digit Position Patterns

Write the positive integers consecutively without separators: 123456789101112131415... . What is the 240th digit from the left? The initial 1 occupies position 1, and the 12th digit is the first digit of 11. Submit one digit from 0 to 9.

Learning goal: Partition a concatenated digit stream into fixed-width number blocks.

Look for the underlying structure rather than guessing the next number. Submit only the final integer; you can open hints below as needed.

Check your answer without signing in. Sign in to save your progress.

Accepted format: a whole number such as 42 or 123456789. No commas, formulas, or source code.

Hints

Hint 1

Count how many digits are used by all one-digit integers.

Hint 2

Include the two-digit block (10 through 99) before locating the three-digit block.

Hint 3

The first 189 digits end at 99; locate digit 51 in the sequence 100101102... .

Common mistake to avoid

Counting numbers instead of digit positions after reaching two-digit and three-digit integers.

How to approach this problem

Group the written integers by digit length. Subtract complete groups, then use zero-based division and remainder within the target group to identify a number and its digit.

Worked example with different values

Position 15 lies six digits after the nine one-digit numbers. Those six digits are 101112, so digit 15 is 2.

Apply the same reasoning to the challenge. This example is a separate practice problem.

Learn the technique: Sequence patterns: differences, recurrences and interleaving

Report a question or explanation issue

Sequence patterns · Repeating remainders

Back to problems →