Math question: If I have N N-sided dice (e.g. 100d100) and I roll them repeatedly, removing any that roll maximum (e.g. 100), what is the expected number of rolls until I have none left, in terms of N?
Wait, I screwed my simulation up, but your tweet here's a good way to think about it. It's the sum for i=1 to N of N/i.
-
-
Urgh am I going to have to simulate this myself....
-
My Scala simulation code (fixed to work, I think), fwiwhttps://gist.github.com/avi-stripe/6eb925629e1ae8352552242ef7cf3ede …
-
Ooh tail recursion. Fancy.
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.