Using the letters P,P,Q,R,S,T,T, how many codes can be formed if they contain exactly four of the seven letters?
i understand how to do this question if the codes contain all seven letters, but how would i approach this if they only contain four? the answer in the book is 5P4 + 2 x 4C2 x 4!/2...