P100
projecteuler.net

Arranged Probability

ℹ️Published on Friday, 15th July 2005, 06:00 pm; Solved by 18415;
Difficulty rating: 30%

If a box contains twenty-one coloured discs, composed of fifteen blue discs and six red discs, and two discs were taken at random, it can be seen that the probability of taking two blue discs, $P(\text{BB}) = (15/21) \times (14/20) = 1/2$.

The next such arrangement, for which there is exactly $50\%$ chance of taking two blue discs at random, is a box containing eighty-five blue discs and thirty-five red discs.

By finding the first arrangement to contain over $10^{12} = 1\,000\,000\,000\,000$ discs in total, determine the number of blue discs that the box would contain.



Soluzione

Last modified: May 01, 2025. Website built with Franklin.jl and the lovely Julia programming language.