Question: 3. Write a R function to calculate (a) the number of permutations of n items chosen r at a time, P for given n and
3. Write a R function to calculate (a) the number of permutations of n items chosen r at a time, "P for given n and r. Your function should have arguments for n and r and must return "P, for given n and r. Test your function for n 15 and 12 (b) the number of combinations of n items chosen k at a time, "Ck for given n and k. Your function should have arguments for n and k and must return "Ck for given n and k Test your function for n 15 and k 12
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
