
Mike D. answered 09/01/20
Effective, patient, empathic, math and science tutor
Sabian
Well suppose there were 5 letters : T, Z, X, W, R.
If the code contains exactly one T , there are 3 cases
- 1st letter only is T, the others can be anything else. 2nd letter - 4 possibilities, 3rd letter , 4 so total possible ways 4 x 4 = 16
- 2nd and 3rd letter T. 16 possibilities for each (same argument as 1)
- So total possible codes : 16 + 16 + 16 = 48
Now extend this method to your situation