Stirling1
computes the Stirling numbers of the first kind
Calling Sequence
Parameters
Description
Examples
Stirling1(n, m)
combinat[stirling1](n, m)
n, m
-
integers
The Stirling1(n,m) command computes the Stirling numbers of the first kind using the (implicit) generating function
∑m=0n⁡Stirling1⁡n,m⁢xm=−−1n+1⁢Γ⁡n−xΓ⁡−x=x⁢x−1⁢...⁢x−n+1
Instead of Stirling1 you can also use the synonym combinat[stirling1].
Regarding combinatorial functions, −1n−m⁢Stirling1⁡n,m is the number of permutations of n symbols that have exactly m cycles. The Stirling numbers also enter binomial series, Mathieu function formulas, and are relevant in physical applications.
The Stirling numbers of the first kind can be expressed as an explicit Sum with the Stirling numbers of second kind in the coefficients:
Stirling1⁡n,m=∑k=0n−m⁡−1k⁢n−1+kn−m+k⁢2⁢n−mn−m−k⁢Stirling2⁡n−m+k,k
Since the Stirling numbers of the second kind also admit an explicit Sum representation,
Stirling2⁡m,n=∑k=0n⁡nk⁢kmn!⁢−1k−n
then, an explicit double Sum representation for Stirling1 is possible by combining the two formulas above. (See the Examples section.)
Stirling1 only evaluates to a number when m and n are positive integers
Stirling1⁡m,n
=convert⁡,Sum
Stirling1⁡m,n=∑_k1=0m−n⁡∑_k2=0_k1⁡−12⁢_k1−_k2⁢m−1+_k1m−n+_k1⁢2⁢m−nm−n−_k1⁢_k1_k2⁢_k2m−n+_k1_k1!
eval⁡,m=10,n=5
−269325=∑_k1=05⁡∑_k2=0_k1⁡−12⁢_k1−_k2⁢9+_k15+_k1⁢155−_k1⁢_k1_k2⁢_k25+_k1_k1!
value⁡
−269325=−269325
See Also
combinat
Stirling2
Download Help Document