raprap wrote:Combination of 4 at a time
C(88,4)=88!/(88-4)!=88*87*86*85
Actually, that's P(88,4). C(88,4) = 88!/[(88-4)!*4!]
Once again:
Step 1: Select four keys
C(88,4) = 88*87*86*85/(4*3*2*1)
Step 2: Select which key to repeat
C(4,1) = 4 (I'm calling this C(4,1) instead of P(4,1) because we're not arranging the choice, just selecting it)
Step 3: Arrange the five keys taking into account that there is one repetition
5!/(2!*1!*1!*1!) = 5!/2!
Step 4: Multiply the results of steps 1-3 to obtain the final answer
C(88,4) * P(4,1) * 5!/2! = 88*87*86*85/(4*3*2*1) * 4 * 5!/2! = 88*87*86*85*10