OK, so if the question was ...
There are 10 counters numbered from 0 to 9. How many ways of picking 3 counters are there?
That would be an nCr using n = 10 and r = 3.
10C3 = 10! / 3!(10-3)!
= 10! / 3! x 7!
= 8 x 9 x 10 / 6
= 120
I can understand that and it's a fairly easy equation to come up with from basic principles.
According to the Project Euler forums there is a combinatorics solution to Problem 37...
[quote="Problem 37"]The number 3797 has an interesting property. Being prime itself, it is possible to continuously remove digits from left to right, and remain prime at each stage: 3797, 797, 97, and 7. Similarly we can work from right to left: 3797, 379, 37, and 3.
Find the sum of the only eleven primes that are both truncatable from left to right and right to left.
NOTE: 2, 3, 5, and 7 are not considered to be truncatable primes.[/quiote]
How would you work this back to combinatorics?
Even question 15 (routes through a 20x20 grid) is screaming out to me to be a combinatorics solution but I can't for the life of me work out how you would find the solution to it?
I think I need to go back and start learning this stuff again
