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

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!