← Complete problem index

PROJECT EULER · #0493

Under the Rainbow

Statement only · SolvedOriginal problem ↗

70 coloured balls are placed in an urn, 10 for each of the seven rainbow colours.

What is the expected number of distinct colours in 20 randomly picked balls?

Give your answer with nine digits after the decimal point (a.bcdefghij).

Write-up coming later

The complete problem is available here. An approach, code, and answer will be added later.