How many coin tosses does it take until you get r Heads OR s Tails?

By Svante Janson, Lucy Martinez and Doron Zeilberger


.tex    [YET TO BE WRITTEN]

.pdf   




Written: Nov. 2025


Maple package


Sample Input and Output for CoinToss.txt

Pictures

Note: the language below is in terms of family planning where Boy is Head and Girl is Tail.

  • If you want to see a plot of the expected family size as a function of the Probability of having a boy (from 0.1 to 0.9) where the goal is to have 100 boys AND (top) OR(bottom) 100 girls look here

  • If you want to see a plot of the expected family size as a function of the Probability of having a boy (from 0.1 to 0.9) where the goal is to have 100 boys AND (top) OR (bottom) 80 girls look here

  • If you want to see a plot of the expected family size as a function of the Probability of having a boy (from 0.1 to 0.9) where the goal is to have 100 boys AND (top) OR (bottom) 60 girls look here

  • If you want to see a plot of the expected family size as a function of the Probability of having a boy (from 0.1 to 0.9) where the goal is to have 100 boys AND (top) OR (bottom) 40 girls look here

  • If you want to see a plot of the expected family size as a function of the Probability of having a boy (from 0.1 to 0.9) where the goal is to have 100 boys AND (top) OR (bottom) 30 girls look here

  • If you want to see a plot of the expected family size as a function of the Probability of having a boy (from 0.1 to 0.9) where the goal is to have 100 boys AND (top) OR (bottom) 20 girls look here

  • If you want to see a plot of the expected family size as a function of the Probability of having a boy (from 0.1 to 0.9) where the goal is to have 100 boys AND (top) OR (bottom) 10 girls look here


    Articles of Doron Zeilberger


    Svante Janson's Home Page

    Lucy Martinez's Home Page

    Doron Zeilberger's Home Page