zeion said:
This is very confusing..
Why does k! equal the number of ways that are repeated?
You need to know the "fundamental principle of counting":
If there are m way one thing can happen and n ways another thing can happen (and they happen "independently") there there are mn (m times n) ways both can happen.
For example, if I have 4 shirts and 3 pairs of pants, there are 3(4)= 12 ways to choose one shirt and one pair of pants to wear ("independently" here meaning no shirt does clashes with any of the pants!).
If I have to choose one letter from A, B, C to write and one letter from P, Q to follow it, there are 3(2)= 6 ways: AP, AQ, BP, BQ, CP, and CQ.
If I have to write all 5 letters A, B, C, D, E, in some order, there are 5 letters to choose to go first. After I have chosen that, there are 4 letters left so there are 4 choices. That means there are 5(4)= 20 choices for the first two letters. After I have chosen those, there are 3 letters left to pick for the third letter. There are 3 ways of doing that so there are 5(4)(3)= (20)(3)= 60 ways of choosing the first 3 letters. That leaves 2 choices for the
fourth letters so 5(4)(3)(2)= (60)(2)= 120 choices for the first four letters. Finally, there is only one letter to "pick" for the fifth letter so there are 5(4)(3)(2)(1)= 5!= 120 ways to order five letters (or five of anything).
Frankly, I am amazed that you were given a problem like this with first having learned that "the number of ways to arrange n distinct things is n!".