

Number of ways of arrangement of n different things into r different groups is calculated as
n! * n-1Cr-1
Number of ways of distribution of n different things into r different groups is the number of onto function and is calculated as
∑(-1)r * (r - k)n (0 <= k <= r )
This is the difference between arrangement and distribution.
