Recursion and Factorials
- 13Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
13 questions
- 1For a positive integer n, the product definition of n! multiplies n by each descending integer until it reaches_____.
Hint
The product ends at the smallest positive integer.
Answer
1
- 2Using the product definition, 4! equals_____.
Hint
Multiply 4×3×2×1.
Answer
24
- 3Using the product definition, 2! equals_____.
Hint
Multiply 2 by the positive integer immediately below it.
Answer
2
- 4The value of 1! is_____.
Hint
The product contains just one factor.
Answer
1
- 5By definition, the value of 0! is_____.
Hint
This special factorial value is defined rather than calculated by multiplying downward.
Answer
1
- 6In computer science, recursion solves a problem by having a function_____.
Hint
Think about what the function does to invoke another instance of its own process.
Answer
calling itself
- 7The factorial function described in the content accepts a positive integer or_____as its argument.
Hint
It includes the special factorial value defined as 1.
Answer
zero
- 8For n≥1, the recursive relationship rewrites n! as n times_____.
Hint
The remaining product is the factorial of the integer immediately below n.
Answer
(n−1)!
- 9The recursive rule n!=n×(n−1)! applies when n is_____.
Hint
Check the condition that prevents the rule from reaching a negative factorial.
Answer
greater than or equal to 1
- 10Applying n!=n×(n−1)! at n=0 would require evaluating_____.
Hint
Substitute zero for n and calculate n−1.
Answer
(−1)!
- 11To make the recursive factorial definition complete, its separate case for n=0 sets n! equal to_____.
Hint
Use the special value assigned to zero factorial.
Answer
1
- 12Using the recursive rule for n=2 gives 2!=2×1!, which evaluates to_____.
Hint
Use the value of 1! to finish the calculation.
Answer
2
- 13Using the recursive rule for n=1 gives 1!=1×0!, which evaluates to_____.
Hint
The recursive step reaches the defined value of 0!.
Answer
1

Ask anything
We've read this whole study set, so questions about it get the best answers.