(49g 50g) Bell numbers - Printable Version +- HP Forums (https://www.hpmuseum.org/forum) +-- Forum: HP Software Libraries (/forum-10.html) +--- Forum: General Software Library (/forum-13.html) +--- Thread: (49g 50g) Bell numbers (/thread-11247.html) |
(49g 50g) Bell numbers - John Keith - 08-19-2018 04:14 PM Following on from this post, this program returns a list of the Bell numbers ( A000110 in OEIS) from 0 through n: Code:
A simple modification of the above will return rows 0 through n of the Bell triangle, OEIS A011971: Code:
Both programs require GoferLists and should be run in exact mode due to the size of the numbers involved. These programs are adapted (i.e. shamelessly stolen) from the excellent Haskell and Python programs in the OEIS links above. RE: (49g 50g) Bell numbers - John Keith - 03-03-2020 09:51 PM Both programs in the post above have been replaced with new programs which are shorter, faster and use less memory. In particular, the first program can compute much longer lists of Bell numbers without an "Insufficient Memory" error. RE: (49g 50g) Bell numbers - Gerald H - 03-04-2020 05:37 AM For integer input N the programme returns the Nth Bell number: Code: Size: 117. |