How many four digit numbers are there whose decimal notation contains not more than two distinct digits?
Case 1(only one Digit) : _ _ _ _ : 9 ways
Case 2(two digits without 0) : __ _ _ _ : (9c1 * 4 )* 8c1 =288ways eg: 1222,2122,2212 , 2221, 2111,1211 etc
Case 3 : 0 repeated and any other digit : 9 ways eg : 1000 , 2000, ...9000
Case 4: 0 single and other digit repeated : 9c1 * 3 =27 eg: 2202 ,2022,2220 etc
What am i missing?
answer is 576
Case 1(only one Digit) : _ _ _ _ : 9 ways
Case 2(two digits without 0) : __ _ _ _ : (9c1 * 4 )* 8c1 =288ways eg: 1222,2122,2212 , 2221, 2111,1211 etc
Case 3 : 0 repeated and any other digit : 9 ways eg : 1000 , 2000, ...9000
Case 4: 0 single and other digit repeated : 9c1 * 3 =27 eg: 2202 ,2022,2220 etc
What am i missing?
answer is 576