'n' digits positive integers formed such that each digit is 1, 2, or 3. How many of these contain all three of the digits 1, 2 and 3 atleast once ?
Text Solution
Verified by ExpertsD
Total n-digit numbers using 1, 2 or 3 = 3n
total n-digit numbers using any two digits out of 1, 2 or 3 = 3C2 × 2 n – 6 = 3 × 2 n – 6
total n-digit numbers using only one digit of 1, 2 or 3 = 3
the numbers containing all three of the digits
1, 2 and 3 at least once = 3 n – (3 × 2 n – 6) – 3 = 3 n – 3 . 2 n + 3
──────────────────────────────────────────────────────────────────────────────────────────
Prepare Smarter with CGP Edu
Get practice questions, solutions, and test series in one place.
Write a Review
Share your experience with this question and solution.
Commentary
Send your comment, doubt, correction, or feedback to admin.
Similar Questions
Explore conceptually related problems