Q. 6

Question

Give a recursive definition for K! for integers k ≥ 0. Be sure you define 0! as part of your answer. 

Step-by-Step Solution

Verified
Answer

The recursive formula is given by

k!=1     if k=0i=1ki     if k>0

1Step1. Given Information

 Definition for k! : 

 If k is a non-negative integer then the product of first k integers is defined as 

k!=1234k.

 For k=0, defining 0!=1

2Step2. Recursive formula

 Formulate recursive relation for k!

 The recursive formula is given by 

k!=1     if k=0i=1ki     if k>0