Combinatorics.jl
Combinatorics.jl copied to clipboard
Problems with Stirling numbers
Stirling numbers of the second kind are always nonnegative and yet:
julia> stirlings2(26,10)
-5247188700862703611
The same issue plagues stirlings1. We have
julia> stirlings1(26,10)
9107464261356742080
but the correct value is 196928100451110820242880.