The number of five digit numbers that can be formed by using digits 1, 2, 3 only, such that three digits of the formed number are identical, is
When exactly three digits are identical and the remaining two are different, then the number of such numbers
When three digits are identical and the remaining two are also identical, then the number of ways
Thus, the number of such numbers