← Complete problem index

PROJECT EULER · #0053

Combinatoric Selections

Statement only · SolvedOriginal problem ↗

There are exactly ten ways of selecting three from five, 12345:

123, 124, 125, 134, 135, 145, 234, 235, 245, and 345

In combinatorics, we use the notation, (53)=10.

In general, (nr)=n!r!(nr)!, where rn, n!=n×(n1)×...×3×2×1, and 0!=1.

It is not until n=23, that a value exceeds one-million: (2310)=1144066.

How many, not necessarily distinct, values of (nr) for 1n100, are greater than one-million?

Write-up coming later

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