If replacement is allowed, compute the number of:

  1. 7-permutations of a 3-set

\[P^{R}(3, 7) = 3^7 = 2187\]

  1. 7-combinations of a 4-set

\[C^{R}(4, 7) = C(10, 7) = C(10, 3) = \binom{10}{3} = 120\]