Analyzing the Setup
We are tasked with finding the total number of 3-digit numbers divisible by 3 using the digits {1,3,5,8}, with repetition allowed. Let the three digits be D1,D2, and D3.
The fundamental condition for divisibility by 3 is that the sum of the digits must be a multiple of 3. Mathematically, we require:
To solve this systematically, we categorize the numbers based on the repetition of digits: all identical, exactly two identical, or all distinct.
Case 1
The Uniform Numbers (AAA)
In this scenario, all three digits are the same. We test each digit from the set {1,3,5,8} to see if 3A is a multiple of 3:
If A=1, sum =3 (Valid)
If A=3, sum =9 (Valid)
If A=5, sum =15 (Valid)
If A=8, sum =24 (Valid)
Since all four digits satisfy the condition, we have 4 valid numbers: 111,333,555, and 888.
Case 2
The Mixed Numbers (AAB)
Here, exactly two digits are identical. We require the sum 2A+B to be a multiple of 3. We test the combinations:
If A=1, 2(1)+B=2+B. For this to be a multiple of 3, B must be 1 (already covered in Case 1) or 4 (not in set).
If A=3, 2(3)+B=6+B. For this to be a multiple of 3, B must be 3 (already covered in Case 1).
If A=5, 2(5)+B=10+B. For this to be a multiple of 3, B must be 8 (since 18 is a multiple of 3).
If A=8, 2(8)+B=16+B. For this to be a multiple of 3, B must be 5 (since 21 is a multiple of 3).
We have two distinct sets: {5,5,8} and {8,8,5}. For each set, the number of arrangements is given by:
Thus, we have 2×3=6 ways.
Case 3
The Distinct Numbers (ABC)
Finally, we consider the case where all three digits are different. We look for triplets {A,B,C} from {1,3,5,8} such that their sum is a multiple of 3:
{1,3,5}: Sum =9 (Valid)
{1,3,8}: Sum =12 (Valid)
{1,5,8}: Sum =14 (Invalid)
{3,5,8}: Sum =16 (Invalid)
Since all digits in these sets are distinct, each set can be arranged in 3!=6 ways. With two valid sets, we have:
The Final Tally
By summing the results from our three logical cases, we arrive at the total count:
Total=4(Case 1)+6(Case 2)+12(Case 3)=22
The total number of 3-digit numbers divisible by 3 using the given digits is 22.