Bell Number (Set Partitions)
Print the number of ways to partition a set of n labelled elements into non-empty groups, modulo 1,000,000,007.
Constraints
0 <= n <= 1000
Discussion
No discussions yet.
Shalyam Support
Hi! Ask us anything — we'll reply on WhatsApp or Telegram within 24 hours.