update meta data
This commit is contained in:
parent
f3a896c724
commit
90e15ed6ce
3307 changed files with 1674 additions and 7 deletions
15
Task/Multifactorial/00DESCRIPTION
Normal file
15
Task/Multifactorial/00DESCRIPTION
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
The factorial of a number, written as <math>n!</math> is defined as <math>n! = n(n-1)(n-2)...(2)(1)</math>
|
||||
|
||||
A generalization of this is the [http://mathworld.wolfram.com/Multifactorial.html multifactorials] where:
|
||||
: <math>n! = n(n-1)(n-2)...(2)(1)</math>
|
||||
: <math>n!! = n(n-2)(n-4)...</math>
|
||||
: <math>n!! ! = n(n-3)(n-6)...</math>
|
||||
: <math>n!! !! = n(n-4)(n-8)...</math>
|
||||
: <math>n!! !! ! = n(n-5)(n-10)...</math>
|
||||
: Where the products are for positive integers.
|
||||
|
||||
If we define the degree of the multifactorial as the difference in successive terms that are multiplied together for a multifactorial (The number of exclamation marks) then the task is to
|
||||
# Write a function that given n and the degree, calculates the multifactorial.
|
||||
# Use the function to generate and display here a table of the first 1..10 members of the first five degrees of multifactorial.
|
||||
|
||||
<small>'''Note:''' The [[wp:Factorial#Multifactorials|wikipedia entry on multifactorials]] gives a different formula. This task uses the [http://mathworld.wolfram.com/Multifactorial.html Wolfram mathworld definition].</small>
|
||||
Loading…
Add table
Add a link
Reference in a new issue