Question
The number of 4-digit numbers which are neither multiple of 7 nor multiple of 3 is ____________.
Answer: 4
Solution
Key Concepts and Formulas
- Complementary Counting: To find the number of elements satisfying "neither A nor B", we calculate the total number of elements and subtract those satisfying "A or B".
- Principle of Inclusion-Exclusion: For two sets A and B, the number of elements in their union is given by:
- Counting Multiples in a Range: The number of multiples of an integer in a range can be found by counting the multiples of up to and subtracting the multiples of up to . Alternatively, if the first multiple is and the last is , the count is .
Step-by-Step Solution
Step 1: Determine the Total Number of 4-Digit Integers
We need to find the total count of integers that have exactly four digits.
- Reasoning: This forms the universal set from which we will subtract numbers that meet the exclusion criteria.
- Calculation: The smallest 4-digit integer is and the largest is . The total number of 4-digit integers is: So, there are four-digit numbers.
Step 2: Count 4-Digit Numbers Divisible by 3
Let be the number of 4-digit integers divisible by 3.
- Reasoning: We need to find the first and last 4-digit multiples of 3 and use the arithmetic progression formula.
- Calculation:
- The smallest 4-digit number is . with a remainder of . The first multiple of 3 is .
- The largest 4-digit number is . with a remainder of . The last multiple of 3 is .
- Using the formula for the number of terms in an arithmetic progression (): There are four-digit numbers divisible by 3.
Step 3: Count 4-Digit Numbers Divisible by 7
Let be the number of 4-digit integers divisible by 7.
- Reasoning: Similar to Step 2, we find the first and last 4-digit multiples of 7.
- Calculation:
- The smallest 4-digit number is . with a remainder of . The first multiple of 7 is .
- The largest 4-digit number is . with a remainder of . The last multiple of 7 is .
- Using the formula for the number of terms in an arithmetic progression: There are four-digit numbers divisible by 7.
Step 4: Count 4-Digit Numbers Divisible by Both 3 and 7
Numbers divisible by both 3 and 7 are divisible by their Least Common Multiple (LCM). Since 3 and 7 are prime, their LCM is . Let be the number of 4-digit integers divisible by 21.
- Reasoning: We need to find the first and last 4-digit multiples of 21.
- Calculation:
- The smallest 4-digit number is . with a remainder of . The first multiple of 21 is .
- The largest 4-digit number is . with a remainder of . The last multiple of 21 is .
- Using the formula for the number of terms in an arithmetic progression: There are four-digit numbers divisible by both 3 and 7.
Step 5: Count 4-Digit Numbers Divisible by 3 or 7
Using the Principle of Inclusion-Exclusion, the number of 4-digit integers divisible by 3 or 7 is .
- Reasoning: This step calculates the count of numbers we want to exclude from our total set. We add the counts of multiples of 3 and 7, and subtract the count of multiples of 21 to correct for double-counting.
- Calculation: There are four-digit numbers divisible by 3 or 7.
Step 6: Calculate the Number of 4-Digit Integers Neither Divisible by 3 Nor by 7
We use complementary counting. The number of 4-digit numbers that are neither a multiple of 3 nor a multiple of 7 is the total number of 4-digit numbers minus those divisible by 3 or 7.
- Reasoning: This is the final step where we apply the complementary counting principle to answer the question.
- Calculation:
Common Mistakes & Tips
- Off-by-One Errors: Be careful when calculating the first and last multiples of a divisor, and when calculating the total number of integers in a range. Always add 1 to the difference.
- Double Counting: Forgetting to subtract the intersection () in the Inclusion-Exclusion principle is a common error.
- LCM Calculation: Ensure you correctly identify the LCM for numbers divisible by two different integers. For coprime numbers, it's their product.
Summary
To find the number of 4-digit integers that are neither multiples of 7 nor multiples of 3, we first determined the total count of 4-digit numbers. Then, we calculated the number of 4-digit integers divisible by 3, by 7, and by both 3 and 7 (i.e., by 21). Using the Principle of Inclusion-Exclusion, we found the total count of numbers divisible by 3 or 7. Finally, we subtracted this count from the total number of 4-digit integers to obtain the desired result.
The final answer is \boxed{5143}.