182 Comments - Last post 49 minutes ago by GeekDoesStuff
299 Comments - Last post 56 minutes ago by Delisper
1,537 Comments - Last post 4 hours ago by terrascura
261 Comments - Last post 4 hours ago by Yorickmeister
85 Comments - Last post 4 hours ago by Aerctaure
53 Comments - Last post 6 hours ago by RobbyRatpoison
2,117 Comments - Last post 7 hours ago by MeguminShiro
38 Comments - Last post 7 minutes ago by Scifryed
96 Comments - Last post 26 minutes ago by TheMuzo
437 Comments - Last post 32 minutes ago by GeekDoesStuff
6,442 Comments - Last post 35 minutes ago by imsaleh0
825 Comments - Last post 41 minutes ago by GeekDoesStuff
9,787 Comments - Last post 49 minutes ago by Peiperissimus
6 Comments - Last post 1 hour ago by Axelflox
Now I wonder if i can write a proper script to do these calculations (improper one starts slowing down for 14th fish). This time wolfram alpha helped again.
Comment has been collapsed.
Is there a Wolfram Alpha formula which spits out the answer? I just tried putting in BellB(x) until I got the right answer (comparing the length of the result with the length of the expected result every time).
I suppose scripts will have problems with the big numbers, they won't even fit in a regular number type (of the languages I know).
Comment has been collapsed.
I did this, but with the SymPy module in Python.
Comment has been collapsed.
Yes, I also found the number by trying different inputs to Bell formula.
Comment has been collapsed.
http://fredrikj.net/blog/2009/03/computing-generalized-bell-numbers/
It gives the exact bell number.
Comment has been collapsed.
Well, according to this solution you can pretty easily calculate it for O(n^2) with Dynamic Optimization. Storing the results is the annoying part. XD
Comment has been collapsed.
I just googled a small set and ended up with a list of enough to have the right number ;)
Comment has been collapsed.
Trivial question after knowing the Function name.
Wiki page leads to a table of n for n <500.
Comment has been collapsed.
Comment has been collapsed.
this was useful,
list off bell numbers
Comment has been collapsed.
Found this interesting formula to quickly estimate (accurate enough to get the order, which was enough in this case) the bell numbers:
def bell_number(N):
return Decimal((1/math.e)) * sum([Decimal((k**N))/Decimal((math.factorial(k))) for k in range(ITERATIONS)])
where ITERATIONS is some constant, 1000 goes quickly and is quite accurate.
Comment has been collapsed.
Didn't think to look for a list and I didn't have MATLAB available, so I just kept guessing using Wolfram Alpha and Dobiński's formula until it worked.
Comment has been collapsed.
i needed 6 guesses. Wolfram Alpha is awesome!
Comment has been collapsed.
Thanks for the puzzles.
Comment has been collapsed.
Thanks again for the challenge! I don't have any interest in this particular game, but it was fun to work on!
Comment has been collapsed.