O'Reilly logo

Digital Dice by Paul J. Nahin

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

image

image

4. A Curious Coin-Flipping Game

The code broke.m simulates this problem. But first, before getting into its details, let me give you the theoretical answer1 for the fair coins case. It is amazingly simple: the average number of tosses until one of the men is ruined is image So, if l = m = n = 1, the answer is image as given in the problem statement. And for ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required