To solve the problem of finding the number of integers between 1 and 1000 (inclusive) divisible by either 8 or 12, we use the inclusion-exclusion principle.
Step 1: Calculate numbers divisible by 8
The count of numbers ≤1000 divisible by 8 is:
[ \left\lfloor \frac{1000}{8} \right\rfloor = 125 ]
Step 2: Calculate numbers divisible by 12
The count of numbers ≤1000 divisible by 12 is:
[ \left\lfloor \frac{1000}{12} \right\rfloor = 83 ]
Step 3: Calculate numbers divisible by both 8 and 12
Numbers divisible by both are those divisible by their LCM.
LCM(8,12) = 24 (since 8=2³, 12=2²×3, LCM=2³×3=24).
Count of such numbers:
[ \left\lfloor \frac{1000}{24} \right\rfloor = 41 ]
Step 4: Apply inclusion-exclusion
[ |A ∪ B| = |A| + |B| - |A∩B| = 125 + 83 - 41 = 167 ]
Answer: 167.


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