Project Euler #151: Paper sheets of standard sizes: an expected-value problem.

  • [deleted]
    + 2 comments

    in double format, they are:

    0 0 0 0: 0

    0 0 0 1: 1

    0 0 0 2: 1

    0 0 1 0: 2

    0 0 0 3: 1

    0 0 1 1: 1.5

    0 0 0 4: 1

    0 0 1 2: 1.33333

    0 0 2 0: 1.5

    0 1 0 0: 2.5

    0 0 1 3: 1.25

    0 0 2 1: 1.38889

    0 1 0 1: 1.91667

    0 0 2 2: 1.31944

    0 1 0 2: 1.69444

    0 1 1 0: 1.65278

    0 1 1 1: 1.55556

    1 0 0 0: 2.55556