n digits positive integer's formed such that each digit is 1 2 or 3 . How many of these contain all three of the digits 1 2. 3 at least once

3(n-1)
  • -14
3^n-3.2^n+3
  • -18
Total n digits using 1,2,3=3^n. Total n digit numbers using any 2digits=3C2*2^n-6=3* 2^n-6. Total n digit numbers using one digit=3. Required answer=3^n-3*2^n+3
  • -5
What are you looking for?