To solve the problem, we follow these steps:
Step 1: Identify the remaining numbers
We remove numbers divisible by 2 or 5. Thus, the remaining numbers are those not divisible by 2 and not divisible by 5.
In every block of 10 consecutive numbers (e.g., 1-10, 11-20, ...), how many are left?
- Excluded numbers: multiples of 2 (5 numbers) + multiples of 5 (2 numbers) - overlap (1 number: 10) → total excluded = 6.
- Remaining numbers per block: 10 - 6 = 4 (e.g., 1,3,7,9 in 1-10).
Step 2: Calculate the number of full blocks
We need the 2018th remaining number.
- Each block contributes 4 numbers.
- 2018 = 4 × 504 + 2 → 504 full blocks (2016 numbers) + 2 extra numbers in the next block.
Step 3: Find the 505th block
The 505th block is:
10×(505-1) + 1 = 5041 to 5050.
The remaining numbers in this block are:
5041 (1st), 5043 (2nd), 5047 (3rd), 5049 (4th).
Step 4: The 2018th number
The 2nd number in the 505th block is 5043.
Answer: 5043


作者声明:本文包含人工智能生成内容。