Combinatorics.jl icon indicating copy to clipboard operation
Combinatorics.jl copied to clipboard

Problems with Stirling numbers

Open scheinerman opened this issue 4 years ago • 0 comments

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.

scheinerman avatar Jun 09 '21 00:06 scheinerman