28 Comments - Last post 6 minutes ago by bat0
2,699 Comments - Last post 42 minutes ago by orono
71 Comments - Last post 1 hour ago by PicoMan
9 Comments - Last post 1 hour ago by Uroboros
3 Comments - Last post 1 hour ago by Ewoda
16,937 Comments - Last post 3 hours ago by InSpec
21 Comments - Last post 3 hours ago by pizzahut
1,608 Comments - Last post 12 minutes ago by Hallowly
51 Comments - Last post 17 minutes ago by AceBerg42
36 Comments - Last post 20 minutes ago by AceBerg42
8,650 Comments - Last post 24 minutes ago by Tomoel69
42 Comments - Last post 33 minutes ago by Devirk
235 Comments - Last post 33 minutes ago by herbesdeprovence
1,027 Comments - Last post 1 hour ago by CulitoRiko7u7
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.